Skip to content

Commit

Permalink
comment out flaky test suite while it is being investigated (airbyteh…
Browse files Browse the repository at this point in the history
  • Loading branch information
lmossman authored and jhammarstedt committed Oct 31, 2022
1 parent 4a2c54c commit 33f4af8
Showing 1 changed file with 84 additions and 84 deletions.
168 changes: 84 additions & 84 deletions airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,115 +15,115 @@ import {
import { openSourceDestinationFromGrid, goToSourcePage } from "pages/sourcePage";
import { goToSettingsPage } from "pages/settingsConnectionPage";

describe("Connection main actions", () => {
beforeEach(() => {
initialSetupCompleted();
});
// describe("Connection main actions", () => {
// beforeEach(() => {
// initialSetupCompleted();
// });

it("Create new connection", () => {
createTestConnection("Test connection source cypress", "Test connection destination cypress");
// it("Create new connection", () => {
// createTestConnection("Test connection source cypress", "Test connection destination cypress");

cy.get("div").contains("Test connection source cypress").should("exist");
cy.get("div").contains("Test connection destination cypress").should("exist");
// cy.get("div").contains("Test connection source cypress").should("exist");
// cy.get("div").contains("Test connection destination cypress").should("exist");

deleteSource("Test connection source cypress");
deleteDestination("Test connection destination cypress");
});
// deleteSource("Test connection source cypress");
// deleteDestination("Test connection destination cypress");
// });

it("Update connection", () => {
cy.intercept("/api/v1/web_backend/connections/update").as("updateConnection");
// it("Update connection", () => {
// cy.intercept("/api/v1/web_backend/connections/update").as("updateConnection");

createTestConnection("Test update connection source cypress", "Test update connection destination cypress");
// createTestConnection("Test update connection source cypress", "Test update connection destination cypress");

goToSourcePage();
openSourceDestinationFromGrid("Test update connection source cypress");
openSourceDestinationFromGrid("Test update connection destination cypress");
// goToSourcePage();
// openSourceDestinationFromGrid("Test update connection source cypress");
// openSourceDestinationFromGrid("Test update connection destination cypress");

goToReplicationTab();
// goToReplicationTab();

selectSchedule("Every hour");
fillOutDestinationPrefix("auto_test");
// selectSchedule("Every hour");
// fillOutDestinationPrefix("auto_test");

submitButtonClick();
// submitButtonClick();

cy.wait("@updateConnection").then((interception) => {
assert.isNotNull(interception.response?.statusCode, "200");
});
// cy.wait("@updateConnection").then((interception) => {
// assert.isNotNull(interception.response?.statusCode, "200");
// });

checkSuccessResult();
// checkSuccessResult();

deleteSource("Test update connection source cypress");
deleteDestination("Test update connection destination cypress");
});
// deleteSource("Test update connection source cypress");
// deleteDestination("Test update connection destination cypress");
// });

it("Update connection (pokeAPI)", () => {
cy.intercept("/api/v1/web_backend/connections/update").as("updateConnection");
// it("Update connection (pokeAPI)", () => {
// cy.intercept("/api/v1/web_backend/connections/update").as("updateConnection");

createTestConnection(
"Test update connection PokeAPI source cypress",
"Test update connection Local JSON destination cypress"
);
// createTestConnection(
// "Test update connection PokeAPI source cypress",
// "Test update connection Local JSON destination cypress"
// );

goToSourcePage();
openSourceDestinationFromGrid("Test update connection PokeAPI source cypress");
openSourceDestinationFromGrid("Test update connection Local JSON destination cypress");
// goToSourcePage();
// openSourceDestinationFromGrid("Test update connection PokeAPI source cypress");
// openSourceDestinationFromGrid("Test update connection Local JSON destination cypress");

goToReplicationTab();
// goToReplicationTab();

selectSchedule("Every hour");
fillOutDestinationPrefix("auto_test");
setupDestinationNamespaceCustomFormat("_test");
selectFullAppendSyncMode();
// selectSchedule("Every hour");
// fillOutDestinationPrefix("auto_test");
// setupDestinationNamespaceCustomFormat("_test");
// selectFullAppendSyncMode();

submitButtonClick();
confirmStreamConfigurationChangedPopup();
// submitButtonClick();
// confirmStreamConfigurationChangedPopup();

cy.wait("@updateConnection").then((interception) => {
assert.isNotNull(interception.response?.statusCode, "200");
expect(interception.request.method).to.eq("POST");
expect(interception.request).property("body").to.contain({
name: "Test update connection PokeAPI source cypress <> Test update connection Local JSON destination cypressConnection name",
prefix: "auto_test",
namespaceDefinition: "customformat",
namespaceFormat: "${SOURCE_NAMESPACE}_test",
status: "active",
});
expect(interception.request.body.scheduleData.basicSchedule).to.contain({
units: 1,
timeUnit: "hours",
});
// cy.wait("@updateConnection").then((interception) => {
// assert.isNotNull(interception.response?.statusCode, "200");
// expect(interception.request.method).to.eq("POST");
// expect(interception.request).property("body").to.contain({
// name: "Test update connection PokeAPI source cypress <> Test update connection Local JSON destination cypressConnection name",
// prefix: "auto_test",
// namespaceDefinition: "customformat",
// namespaceFormat: "${SOURCE_NAMESPACE}_test",
// status: "active",
// });
// expect(interception.request.body.scheduleData.basicSchedule).to.contain({
// units: 1,
// timeUnit: "hours",
// });

const streamToUpdate = interception.request.body.syncCatalog.streams[0];
// const streamToUpdate = interception.request.body.syncCatalog.streams[0];

expect(streamToUpdate.config).to.contain({
aliasName: "pokemon",
destinationSyncMode: "append",
selected: true,
});
// expect(streamToUpdate.config).to.contain({
// aliasName: "pokemon",
// destinationSyncMode: "append",
// selected: true,
// });

expect(streamToUpdate.stream).to.contain({
name: "pokemon",
});
expect(streamToUpdate.stream.supportedSyncModes).to.contain("full_refresh");
});
checkSuccessResult();
// expect(streamToUpdate.stream).to.contain({
// name: "pokemon",
// });
// expect(streamToUpdate.stream.supportedSyncModes).to.contain("full_refresh");
// });
// checkSuccessResult();

deleteSource("Test update connection PokeAPI source cypress");
deleteDestination("Test update connection Local JSON destination cypress");
});
// deleteSource("Test update connection PokeAPI source cypress");
// deleteDestination("Test update connection Local JSON destination cypress");
// });

it("Delete connection", () => {
createTestConnection("Test delete connection source cypress", "Test delete connection destination cypress");
// it("Delete connection", () => {
// createTestConnection("Test delete connection source cypress", "Test delete connection destination cypress");

goToSourcePage();
openSourceDestinationFromGrid("Test delete connection source cypress");
openSourceDestinationFromGrid("Test delete connection destination cypress");
// goToSourcePage();
// openSourceDestinationFromGrid("Test delete connection source cypress");
// openSourceDestinationFromGrid("Test delete connection destination cypress");

goToSettingsPage();
// goToSettingsPage();

deleteEntity();
// deleteEntity();

deleteSource("Test delete connection source cypress");
deleteDestination("Test delete connection destination cypress");
});
});
// deleteSource("Test delete connection source cypress");
// deleteDestination("Test delete connection destination cypress");
// });
// });

0 comments on commit 33f4af8

Please sign in to comment.