Skip to content

Commit

Permalink
Made selector for cluster checkbox more generic (kubev2v#960)
Browse files Browse the repository at this point in the history
* As middle of selector there is flaky I amm searching for `Select` and name of the cluster

* Update plan.ts
  • Loading branch information
ibragins committed Jun 6, 2022
1 parent ada12c6 commit c751e17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/qe-tests/cypress/integration/models/plan.ts
Expand Up @@ -65,8 +65,6 @@ import {
network,
scheduledCutoverButton,
} from '../views/plan.view';
import { Simulate } from 'react-dom/test-utils';
import pause = Simulate.pause;

export class Plan {
protected static openList(): void {
Expand Down Expand Up @@ -130,7 +128,8 @@ export class Plan {
.within(() => {
click(button);
});
const selector = `[aria-label="Select Cluster ${sourceClusterName}"]`;
//As middle of text there is flaky I'm searching for `Select` and name of the cluster
const selector = `[aria-label^=Select][aria-label$=${sourceClusterName}]`;
selectCheckBox(selector); //Added selectCheckBox function
next();
}
Expand Down

0 comments on commit c751e17

Please sign in to comment.