Skip to content

Commit

Permalink
fix pretty code
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Nov 15, 2024
1 parent 5ee9559 commit 4b54ecb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions cypress/pages/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class CredentialsPage extends BasePage {
cy.get('@submenu')
.should('be.visible')
.within((submenu) => {

// If submenu has another submenu
if (submenu.find('[data-test-id="navigation-submenu"]').length) {
cy.wrap(submenu)
Expand All @@ -38,7 +37,10 @@ export class CredentialsPage extends BasePage {
.filter(':contains("Personal")')
.as('button');
} else {
cy.wrap(submenu).find('[data-test-id="navigation-menu-item"]').filter(':contains("Credential")').as('button');
cy.wrap(submenu)
.find('[data-test-id="navigation-menu-item"]')
.filter(':contains("Credential")')
.as('button');
}
});

Expand Down
6 changes: 4 additions & 2 deletions cypress/pages/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export class WorkflowsPage extends BasePage {
cy.get('@submenu')
.should('be.visible')
.within((submenu) => {

// If submenu has another submenu
if (submenu.find('[data-test-id="navigation-submenu"]').length) {
cy.wrap(submenu)
Expand All @@ -40,7 +39,10 @@ export class WorkflowsPage extends BasePage {
.filter(':contains("Personal")')
.as('button');
} else {
cy.wrap(submenu).find('[data-test-id="navigation-menu-item"]').filter(':contains("Workflow")').as('button');
cy.wrap(submenu)
.find('[data-test-id="navigation-menu-item"]')
.filter(':contains("Workflow")')
.as('button');
}
});

Expand Down

0 comments on commit 4b54ecb

Please sign in to comment.