Skip to content

Commit

Permalink
fixing scrollIntoView()
Browse files Browse the repository at this point in the history
Changing assertion option

Signed-off-by: Manuel Martín <manuel.martin@suse.com>
  • Loading branch information
mmartin24 committed May 13, 2024
1 parent 87a03cf commit 230f009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export function createUser(username, password, role, uncheckStandardUser=false)
.click();
}
if (uncheckStandardUser === true) {
cy.get('span[aria-label="Standard User"]').scrollIntoView;
cy.contains('Standard User').should('be.visible');
cy.get('span[aria-label="Standard User"]').scrollIntoView();
cy.contains('Standard User').should('exist');
cy.get('span[aria-label="Standard User"]').click();
}
cy.getBySel('form-save')
Expand Down

0 comments on commit 230f009

Please sign in to comment.