From 0e9c58d2b11a0dc421dec7223e3c36460a552d69 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 15 Oct 2021 08:15:56 +0100 Subject: [PATCH] Revert "test: :white_check_mark: Fixed wizard test" This reverts commit 1ea00fed015d9c87d8058a91b8d921060b370511. --- tests/cypress/tests/01-wizard/01-wizard.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'); }); });