1
0
mirror of synced 2026-01-26 04:01:39 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/integration/source.spec.ts
Lake Mossman 0ff7234504 make FE E2E tests more reliable (#16759)
* make tests more reliable

* switch back to localhost

* run test 100 times

* pass props through to Text element

* ensure names are unique from one test run to the next

* fix test result check
2022-09-17 11:21:44 -07:00

35 lines
1.1 KiB
TypeScript

import { appendRandomString } from "commands/common";
import { createPostgresSource, deleteSource, updateSource } from "commands/source";
import { initialSetupCompleted } from "commands/workspaces";
describe("Source main actions", () => {
beforeEach(() => {
initialSetupCompleted();
});
it("Create new source", () => {
createPostgresSource("Test source cypress");
cy.url().should("include", `/source/`);
});
//TODO: add update source on some other connector or create 1 more user for pg
it.skip("Update source", () => {
const sourceName = appendRandomString("Test source cypress for update");
createPostgresSource(sourceName);
updateSource(sourceName, "connectionConfiguration.start_date", "2020-11-11");
cy.get("div[data-id='success-result']").should("exist");
cy.get("input[value='2020-11-11']").should("exist");
});
it("Delete source", () => {
const sourceName = appendRandomString("Test source cypress for delete");
createPostgresSource(sourceName);
deleteSource(sourceName);
cy.visit("/");
cy.get("div").contains(sourceName).should("not.exist");
});
});