1
0
mirror of synced 2026-01-03 06:02:23 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/integration/source.spec.ts
Edmundo Ruiz Ghanem 609541d9ae Migrate cypress tests and commands to TypeScript (#13091)
* Migrate cypress tests and commands to TypeScript

* Cypress added plugins to tsconfig

* Update cypress plugins file to .ts
2022-06-03 13:00:58 -04:00

31 lines
1021 B
TypeScript

import { createTestSource, deleteSource, updateSource } from "commands/source";
import { initialSetupCompleted } from "commands/workspaces";
describe("Source main actions", () => {
beforeEach(() => {
initialSetupCompleted();
});
it("Create new source", () => {
createTestSource("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", () => {
createTestSource("Test source cypress for update");
updateSource("Test source cypress for update", "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", () => {
createTestSource("Test source cypress for delete");
deleteSource("Test source cypress for delete");
cy.visit("/");
cy.get("div").contains("Test source cypress for delete").should("not.exist");
});
});