1
0
mirror of synced 2026-01-09 06:03:17 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/pages/sourcePage.ts
Lake Mossman 787e87dd92 Exclude webapp from spotless styling (#16455)
* exclude webapp from spotless styling

* also exclude airbyte-webapp-e2e-tests

* add comma

* add prettier to airbyte-webapp-e2e-tests

* run prettier on airbyte-webapp-e2e-tests
2022-09-09 12:19:46 -07:00

18 lines
459 B
TypeScript

const newSource = "button[data-id='new-source'";
export const goToSourcePage = () => {
cy.intercept("/api/v1/sources/list").as("getSourcesList");
cy.visit("/source");
cy.wait(3000);
cy.wait("@getSourcesList");
};
export const openSourceDestinationFromGrid = (value: string) => {
cy.get("div").contains(value).click();
};
export const openNewSourceForm = () => {
cy.get(newSource).click();
cy.url().should("include", `/source/new-source`);
};