Skip to content

Commit

Permalink
chore: move to modalValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Jun 18, 2024
1 parent 4f88ae3 commit b60057e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/laboratory/tests/basic-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ testM.describe('Modal only tests', () => {
})

testMExternal.describe('External connectors tests', () => {
testMExternal('Should show external connectors', async ({ modalPage }) => {
testMExternal('Should show external connectors', async ({ modalPage, modalValidator }) => {
await modalPage.page.getByTestId('connect-button').click()
const externalConnector = modalPage.page.getByTestId(/^wallet-selector-external/u)
await expect(externalConnector).toBeVisible()
await modalValidator.expectExternalVisible()
})
})
5 changes: 5 additions & 0 deletions apps/laboratory/tests/shared/validators/ModalValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,9 @@ export class ModalValidator {

expect(isVerified).toBe(true)
}

async expectExternalVisible() {
const externalConnector = this.page.getByTestId(/^wallet-selector-external/u)
await expect(externalConnector).toBeVisible()
}
}

0 comments on commit b60057e

Please sign in to comment.