diff --git a/tests/cypress/tests/01-wizard/01-wizard.spec.ts b/tests/cypress/tests/01-wizard/01-wizard.spec.ts index a04313fd0..4cbe11a3c 100644 --- a/tests/cypress/tests/01-wizard/01-wizard.spec.ts +++ b/tests/cypress/tests/01-wizard/01-wizard.spec.ts @@ -22,8 +22,15 @@ describe("Wizard Setup", () => { // Verify we end back up on the user page Page.matStepsHeader.then((items) => { - cy.get('#cdk-step-label-0-2').should('have.attr', 'aria-selected', 'true'); + const results = items.filter((index, html) => { + var attributes = Cypress.$(html).attr('ng-reflect-index'); + return attributes === "2"; // 2nd index + }).get()[0]; + console.log(results); + + var attr = Cypress.$(results).attr('ng-reflect-selected'); + assert.equal(attr, 'true'); }); });