Skip to content

Commit

Permalink
Merge pull request #113 from upalatucci/fix-e2etests
Browse files Browse the repository at this point in the history
fix tests for 4.17 and 4.18
  • Loading branch information
openshift-merge-bot[bot] authored Oct 3, 2024
2 parents 5cecb2b + cb62a95 commit 237a2a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/StatusList.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
EXPAND_INTERFACES_LIST_TEST_ID,
INTERFACE_DRAWER_TEST_ID,
LLDP_DRAWER_DETAILS_SECTION_TEST_ID,
LLDP_ENABLED_FILTER,
SEARCH_FILTER_DROPDOWN,
} from '../support/selectors';

Expand Down Expand Up @@ -105,9 +104,10 @@ describe('NodeNetworkState list', () => {
cy.get('table').should('contain', nns.metadata.name);

// open filter toolbar
cy.get('button').contains('Filter').click();
cy.get('button').contains('Filter').click({ force: true });

cy.get(LLDP_ENABLED_FILTER).check();
// filter by lldp enabled
cy.contains('label', 'Enabled').find('input[type="checkbox"]').check();

// close filter toolbar by clicking outside
cy.clickOutside();
Expand Down
2 changes: 0 additions & 2 deletions cypress/support/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ export const EXPAND_INTERFACE_INFO = 'ethernet-expandable-section-toggle';
export const INTERFACE_DRAWER_TEST_ID = 'interface-drawer';
export const LLDP_DRAWER_DETAILS_SECTION_TEST_ID = 'lldp-section';

export const LLDP_ENABLED_FILTER = '#enabled [type="checkbox"]';

export const SEARCH_FILTER_DROPDOWN =
'button.pf-v5-c-dropdown__toggle[data-test-id="dropdown-button"]';

0 comments on commit 237a2a9

Please sign in to comment.