Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
fix tests for 4.17 and 4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
upalatucci committed Oct 2, 2024
1 parent 5cecb2b commit cb62a95
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 cb62a95

Please sign in to comment.