Skip to content

Commit

Permalink
add setup db (just for testing purpose)
Browse files Browse the repository at this point in the history
  • Loading branch information
dizel852 committed Nov 15, 2022
1 parent 9f176ca commit ec881fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import {
} from "pages/replicationPage";
import { openSourceDestinationFromGrid, goToSourcePage } from "pages/sourcePage";
import { goToSettingsPage } from "pages/settingsConnectionPage";
import { update } from "cypress/types/lodash";
import { PopulatePostgresDBSource } from "../commands/db";

describe("Connection main actions", () => {
before(PopulatePostgresDBSource);

beforeEach(() => {
initialSetupCompleted();
});
Expand Down Expand Up @@ -171,7 +173,11 @@ describe("Connection main actions", () => {

let loadedConnection: any = null; // Should be a WebBackendConnectionRead
cy.wait("@getConnection").then((interception) => {
const { scheduleType: readScheduleType, scheduleData: readScheduleData, ...connectionRead } = interception.response?.body;
const {
scheduleType: readScheduleType,
scheduleData: readScheduleData,
...connectionRead
} = interception.response?.body;
loadedConnection = connectionRead;

expect(loadedConnection).not.to.eq(null);
Expand Down

0 comments on commit ec881fc

Please sign in to comment.