Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update feature flag table test to dynamically check feature flag count #12199

Merged
Merged
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
update feature flag table test to dynamically check feature flag count
  • Loading branch information
mantis-toboggan-md committed Oct 9, 2024
commit 9cb13417f08bb56c98b2ca6c4e9e41b4a58088a1
7 changes: 5 additions & 2 deletions cypress/e2e/tests/pages/global-settings/feature-flags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ describe('Feature Flags', { testIsolation: 'off' }, () => {
describe('List', { tags: ['@vai', '@globalSettings', '@adminUser', '@standardUser'] }, () => {
it('validate feature flags table header content', () => {
FeatureFlagsPagePo.navTo();

// check table headers are visible
const expectedHeaders = ['State', 'Name', 'Description', 'Restart Required'];

Expand All @@ -229,7 +228,11 @@ describe('Feature Flags', { testIsolation: 'off' }, () => {
featureFlagsPage.list().resourceTable().sortableTable().checkVisible();
featureFlagsPage.list().resourceTable().sortableTable().checkLoadingIndicatorNotVisible();
featureFlagsPage.list().resourceTable().sortableTable().noRowsShouldNotExist();
featureFlagsPage.list().resourceTable().sortableTable().checkRowCount(false, 15);
cy.getRancherResource('v1', 'management.cattle.io.features').then((resp: Cypress.Response<any>) => {
const featureCount = resp.body.count;

featureFlagsPage.list().resourceTable().sortableTable().checkRowCount(false, featureCount);
});
});
});
});
Loading