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

fix tests for 4.17 and 4.18 #113

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]';
Loading