test: Fixed wizard test

pull/4346/head
tidusjar 3 years ago
parent 72eb873ddb
commit 1ea00fed01

@ -8,7 +8,7 @@ describe("Wizard Setup", () => {
}); });
it("Finsh with no local user", () => { it.only("Finsh with no local user", () => {
Page.visit(); Page.visit();
Page.welcomeTab.next.click(); Page.welcomeTab.next.click();
@ -22,15 +22,8 @@ describe("Wizard Setup", () => {
// Verify we end back up on the user page // Verify we end back up on the user page
Page.matStepsHeader.then((items) => { Page.matStepsHeader.then((items) => {
const results = items.filter((index, html) => { cy.get('#cdk-step-label-0-2').should('have.attr', 'aria-selected', 'true');
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');
}); });
}); });

Loading…
Cancel
Save