Formatting for command

This commit is contained in:
Dean 2022-04-07 12:23:19 +01:00
parent cffdad78e5
commit 0817f3f7b4
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ Cypress.Commands.add("createScreen", (screenName, route, accessLevelLabel) => {
cy.get(".spectrum-Dialog-grid").within(() => {
cy.get(".spectrum-Form-itemField").eq(0).type(route)
if(accessLevelLabel){
if (accessLevelLabel) {
cy.get(".spectrum-Picker-label").click()
cy.wait(500)
cy.contains(accessLevelLabel).click()