From f4bd4842a1c25380a3f028e9f0ce985c90fd21f3 Mon Sep 17 00:00:00 2001 From: lmossman Date: Wed, 14 Sep 2022 14:25:26 -0700 Subject: [PATCH] comment out flaky test suite while it is being investigated --- .../cypress/integration/connection.spec.ts | 168 +++++++++--------- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts b/airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts index 0bb9fab662b3..20fea0be2d9b 100644 --- a/airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts +++ b/airbyte-webapp-e2e-tests/cypress/integration/connection.spec.ts @@ -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"); +// }); +// });