* improve serviceTypeDropdownOption selector * add test ids to PathPopout component(s) * add unique id's to table dropdowns * extend submitButtonClick to support optional click options * update dropdown(pathPopout) matchers * add test-id to Overlay component * remove redundant function brackets * revert changes onSubmit button click * fix dropDown overlay issue * move all duplicated intercepters to beforeEach * add test id's to Connections, Sources and Destinations tables * add table helper functions * update source page actions * intercepter fixes * update createTestConnection function with optional replication settings * remove extra Connection name check * replace "cypress-postgres" with "pg-promise" npm package * update cypress config * Revert "update createTestConnection function with optional replication settings" This reverts commit8e47c7837b. * Revert "remove extra Connection name check" This reverts commitdfb19c7dd4. * replace openSourceDestinationFromGrid with specific selector * replace openSourceDestinationFromGrid with specific selector * turn on test * add test-id's * fix selectors * update test * update test snapshots * fix lost data-testid after resolve merge conflicts * remove extra check * move clickOnCellInTable helper to common.ts file * remove empty line and comments * fix dropdownType * replace partial string check with exact * extract interceptors and waiters to separate file * fix selector for predefined PK * fix selector * add comment regarding dropdown
19 lines
658 B
TypeScript
19 lines
658 B
TypeScript
import { clickOnCellInTable } from "commands/common";
|
|
|
|
const settingsTab = "div[data-id='settings-step']";
|
|
const sourceColumnName = "Source name";
|
|
const destinationColumnName = "Destination name";
|
|
const connectionsTable = "table[data-testid='connectionsTable']";
|
|
|
|
export const openConnectionOverviewBySourceName = (sourceName: string) => {
|
|
clickOnCellInTable(connectionsTable, sourceColumnName, sourceName);
|
|
};
|
|
|
|
export const openConnectionOverviewByDestinationName = (destinationName: string) => {
|
|
clickOnCellInTable(connectionsTable, destinationColumnName, destinationName);
|
|
};
|
|
|
|
export const goToSettingsPage = () => {
|
|
cy.get(settingsTab).click();
|
|
};
|