Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comment out flaky test suite while it is being investigated #16752

Merged
merged 2 commits into from
Sep 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
// });
// });