Skip to content

Commit

Permalink
Return ns picker back to default state
Browse files Browse the repository at this point in the history
- Originally had wanted to store existing, but it gets complicated if multiple projects are selected
  • Loading branch information
richard-cox committed Mar 25, 2024
1 parent f7482bd commit 3f9b289
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cypress/e2e/tests/pages/explorer/legacy/projects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { ConfigMapPagePo } from '@/cypress/e2e/po/pages/explorer/config-map.po';
import { NamespaceFilterPo } from '@/cypress/e2e/po/components/namespace-filter.po';

const featureFlagsPage = new FeatureFlagsPagePo();
const namespacePicker = new NamespaceFilterPo();

let disableLegacyFlag = false;

describe('Legacy: Projects', { tags: ['@explorer', '@adminUser'], testIsolation: 'off' }, () => {
Expand All @@ -24,8 +26,6 @@ describe('Legacy: Projects', { tags: ['@explorer', '@adminUser'], testIsolation:

configMapPage.goTo();

const namespacePicker = new NamespaceFilterPo();

namespacePicker.toggle();
namespacePicker.clickOptionByLabel('All Namespaces');
namespacePicker.clickOptionByLabel('Project: Default');
Expand All @@ -43,5 +43,8 @@ describe('Legacy: Projects', { tags: ['@explorer', '@adminUser'], testIsolation:
if (disableLegacyFlag) {
featureFlagsPage.setFeatureFlag('legacy', false);
}

namespacePicker.toggle();
namespacePicker.clickOptionByLabel('Only User Namespaces'); // This is the default
});
});

0 comments on commit 3f9b289

Please sign in to comment.