Skip to content

Commit 1d84d82

Browse files
Merge pull request #15026 from yapei/main
OCPBUGS-55808: fix cy.createProject command
2 parents 6a35cad + 8d8e8e0 commit 1d84d82

File tree

1 file changed

+1
-2
lines changed
  • frontend/packages/integration-tests-cypress/support

1 file changed

+1
-2
lines changed

frontend/packages/integration-tests-cypress/support/project.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ Cypress.Commands.add('createProject', (name: string, devConsole: boolean = false
2727
cy.testA11y('Create Project modal');
2828
modal.submit();
2929
modal.shouldBeClosed();
30-
// TODO, switch to 'listPage.titleShouldHaveText(name)', when we switch to new test id
3130
if (devConsole === false) {
32-
cy.get('[data-test="page-heading"] h1').should('have.text', name);
31+
listPage.titleShouldHaveText(name);
3332
}
3433
});
3534

0 commit comments

Comments
 (0)