1
0
mirror of synced 2026-01-24 16:01:55 -05:00
Files
airbyte/airbyte-e2e-testing/cypress/integration/source.spec.js
Artem Astapenko 29482430ea Jamakase/add cypress (#2199)
* Add data-id to controls

* Add tests

* Add e2e test starting

* Add skip onboarding test
2021-03-03 07:26:21 +07:00

23 lines
779 B
JavaScript

describe("Source main actions", () => {
it("Create new source", () => {
cy.createTestSource("Test source cypress");
cy.url().should("include", `${Cypress.config().baseUrl}/source/`);
});
it("Update source", () => {
cy.createTestSource("Test source cypress for update");
cy.updateSource("Test source cypress for update", "connectionConfiguration.start_date", "2020-11-11");
cy.get("span[data-id='success-result']").should("exist");
cy.get("input[value='2020-11-11']").should("exist");
});
it("Delete source", () => {
cy.createTestSource("Test source cypress for delete");
cy.deleteSource("Test source cypress for delete");
cy.visit("/");
cy.get("div").contains("Test source cypress for delete").should("not.exist");
});
});