Skip to content
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
11 changes: 6 additions & 5 deletions cypress/e2e/tests/pages/fleet/fleet-clusters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { HeaderPo } from '@/cypress/e2e/po/components/header.po';
import { EXTRA_LONG_TIMEOUT_OPT, LONG_TIMEOUT_OPT, MEDIUM_TIMEOUT_OPT, VERY_LONG_TIMEOUT_OPT } from '@/cypress/support/utils/timeouts';
import { FeatureFlagsPagePo } from '@/cypress/e2e/po/pages/global-settings/feature-flags.po';
import LoadingPo from '@/cypress/e2e/po/components/loading.po';
import { qase } from '@/cypress/support/qase';

const fleetClusterListPage = new FleetClusterListPagePo();
const fleetAppBundlesListPage = new FleetApplicationListPagePo();
Expand Down Expand Up @@ -81,7 +82,7 @@ describe('Fleet Clusters - bundle manifests are deployed from the BundleDeployme
cy.updateNamespaceFilter('local', 'none', '{"local":["all://user"]}');
});

it('data is populated in fleet cluster list and detail view', () => {
qase(9691, it('data is populated in fleet cluster list and detail view', () => {
ClusterManagerListPagePo.navTo();
clusterList.waitForPage();
clusterList.list().state(clusterName).contains('Active', VERY_LONG_TIMEOUT_OPT);
Expand Down Expand Up @@ -120,14 +121,14 @@ describe('Fleet Clusters - bundle manifests are deployed from the BundleDeployme

const fleetClusterDetailsPage = new FleetClusterDetailsPo(namespace, clusterName);

// check cluster labels
fleetClusterDetailsPage.clusterLabels().contains('foo: bar').should('be.visible');

// go to cluster details in fleet
fleetClusterListPage.goToDetailsPage(clusterName);
fleetClusterDetailsPage.waitForPage(null, 'applications');
fleetClusterDetailsPage.clusterTabs().clickTabWithSelector('[data-testid="btn-applications"]');

// check cluster labels
fleetClusterDetailsPage.clusterLabels().contains('foo: bar').scrollIntoView().should('be.visible');

// check state
fleetClusterDetailsPage.appBundlesList().resourceTableDetails(gitRepo, 1).contains('Active');
// check name
Expand All @@ -140,7 +141,7 @@ describe('Fleet Clusters - bundle manifests are deployed from the BundleDeployme
fleetClusterDetailsPage.appBundlesList().resourceTableDetails(gitRepo, 5).contains('All');
// check cluster resources
fleetClusterDetailsPage.appBundlesList().resourceTableDetails(gitRepo, 7).should('contain.text', '—');
});
}));

it('check all tabs are available in the details view', () => {
// testing https://github.com/rancher/dashboard/issues/11155
Expand Down
Loading