Revert "test: Fixed wizard test"

This reverts commit 1ea00fed01.
This commit is contained in:
tidusjar 2021-10-15 08:15:56 +01:00
commit 0e9c58d2b1

View file

@ -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');
});
});