1
0
mirror of synced 2026-02-03 10:02:09 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/pages/modals/catalogDiffModal.ts
Vladimir 66edbfbbec 🪟 🧪E2E testing: DB data manipulation + Catalog Diff modal test cases (#19447)
* add cypress-postgres package

* fix plugins/index.ts warnings

* fix plugins/index.ts warnings

* setup test db actions

* add setup db (just for testing purpose)

* add create db command to gradle

* Revert "add create db command to gradle"

This reverts commit bc0f350fbd.

* add test-id to components

* update db queries in tests

* fix format

* add tests with diff modal

* remove 'only' flag

* update failed snapshots

* update aria label and data-testid in components

* move selectors to separate pages

* update tests

* update test snapshots

* update test since data-testid was added
2022-11-28 18:19:20 +02:00

12 lines
618 B
TypeScript

export const catalogDiffModal = "[data-testid='catalog-diff-modal']";
export const removedStreamsTable = "table[aria-label='removed streams table']";
export const newStreamsTable = "table[aria-label='new streams table']";
const streamWithChangesToggleBtn = (streamName: string) =>
`button[data-testid='toggle-accordion-${streamName}-stream']`;
export const removedFieldsTable = "table[aria-label='removed fields']";
export const newFieldsTable = "table[aria-label='new fields']";
export const toggleStreamWithChangesAccordion = (streamName: string) => {
cy.get(streamWithChangesToggleBtn(streamName)).click();
};