From 1ea00fed015d9c87d8058a91b8d921060b370511 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 14 Oct 2021 15:31:59 +0100 Subject: [PATCH] test: :white_check_mark: Fixed wizard test --- tests/cypress/tests/01-wizard/01-wizard.spec.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/cypress/tests/01-wizard/01-wizard.spec.ts b/tests/cypress/tests/01-wizard/01-wizard.spec.ts index 4cbe11a3c..b0ff071f5 100644 --- a/tests/cypress/tests/01-wizard/01-wizard.spec.ts +++ b/tests/cypress/tests/01-wizard/01-wizard.spec.ts @@ -8,7 +8,7 @@ describe("Wizard Setup", () => { }); - it("Finsh with no local user", () => { + it.only("Finsh with no local user", () => { Page.visit(); Page.welcomeTab.next.click(); @@ -22,15 +22,8 @@ describe("Wizard Setup", () => { // Verify we end back up on the user page Page.matStepsHeader.then((items) => { - const results = items.filter((index, html) => { - var attributes = Cypress.$(html).attr('ng-reflect-index'); - return attributes === "2"; // 2nd index - }).get()[0]; + cy.get('#cdk-step-label-0-2').should('have.attr', 'aria-selected', 'true'); - console.log(results); - - var attr = Cypress.$(results).attr('ng-reflect-selected'); - assert.equal(attr, 'true'); }); });