mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -07:00
test: ✅ Fixed wizard test
This commit is contained in:
parent
72eb873ddb
commit
1ea00fed01
1 changed files with 2 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue