Skip to content

Commit

Permalink
Bug 1976939: Interacting with CatalogSource page
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaylor113 committed Jul 21, 2021
1 parent 7cf66c2 commit 385125e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare global {
byLegacyTestID(selector: string): Chainable<Element>;
byButtonText(selector: string): Chainable<Element>;
byDataID(selector: string): Chainable<Element>;
byTestSelector(selector: string): Chainable<Element>;
byTestSelector(selector: string, options?: object): Chainable<Element>;
byTestDropDownMenu(selector: string): Chainable<Element>;
byTestOperatorRow(selector: string, options?: object): Chainable<Element>;
byTestSectionHeading(selector: string): Chainable<Element>;
Expand Down Expand Up @@ -37,8 +37,8 @@ Cypress.Commands.add('byButtonText', (selector: string) =>

Cypress.Commands.add('byDataID', (selector: string) => cy.get(`[data-id="${selector}"]`));

Cypress.Commands.add('byTestSelector', (selector: string) =>
cy.get(`[data-test-selector="${selector}"]`),
Cypress.Commands.add('byTestSelector', (selector: string, options?: object) =>
cy.get(`[data-test-selector="${selector}"]`, options),
);

Cypress.Commands.add('byTestDropDownMenu', (selector: string) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ describe(`Interacting with CatalogSource page`, () => {

// validate Status field
cy.byTestSelector('details-item-label__Status').should('be.visible');
cy.byTestSelector('details-item-value__Status').should('have.text', 'READY');
cy.byTestSelector('details-item-value__Status', { timeout: 300000 }).should(
'have.text',
'READY',
); // 5 mins

// validate DisplayName field
cy.byTestSelector('details-item-label__Display name').should('be.visible');
Expand Down

This file was deleted.

0 comments on commit 385125e

Please sign in to comment.