Skip to content

Commit ccb4f5a

Browse files
committed
Attempt to fix flaky test
1 parent a22b4a4 commit ccb4f5a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cypress/e2e/tests/pages/manager/edit-fake-cluster.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ describe('Cluster Edit', { tags: ['@manager', '@adminUser'] }, () => {
3232
const clusterList = new ClusterManagerListPagePo('_');
3333

3434
clusterList.waitForPage();
35-
cy.wait('@provClusters'); // Wait for request which will populate the drop down
35+
cy.intercept({
36+
method: 'GET',
37+
pathname: '/v1/provisioning.cattle.io.clusters',
38+
query: { pagesize: '100000' }
39+
}).as('waitForDropDownInfo'); // Wait for request which will populate the drop down
40+
41+
cy.wait('@waitForDropDownInfo');
3642
clusterList.editCluster(fakeProvClusterId);
3743

3844
const editCluster = new ClusterManagerEditGenericPagePo('_', fakeProvClusterId);

0 commit comments

Comments
 (0)