Skip to content

Commit

Permalink
Removed chained element and separated it
Browse files Browse the repository at this point in the history
Signed-off-by: Satyajit Bulage <satyajit.bulage@suse.com>
  • Loading branch information
sbulage authored and juadk committed Feb 28, 2025
1 parent 83486c1 commit 9a1992f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ export function createUser(username, password, role, uncheckStandardUser=false)
if (uncheckStandardUser === true) {
cy.get('body').then((body) => {
if (body.find('span[aria-label="Standard User"]').length) {
cy.get('span[aria-label="Standard User"]').scrollIntoView();
cy.get('span[aria-label="Standard User"]')
.scrollIntoView()
.should('be.visible')
.should('be.visible')
.click();
}
else if (body.find('div[data-testid="grb-checkbox-user"] > .checkbox-container').length) {
cy.get('div[data-testid="grb-checkbox-user"] > .checkbox-container').scrollIntoView();
cy.get('div[data-testid="grb-checkbox-user"] > .checkbox-container')
.contains('Standard User')
.scrollIntoView()
.should('be.visible')
.click();
}
Expand Down

0 comments on commit 9a1992f

Please sign in to comment.