Skip to content

Commit

Permalink
chore: running multiple files in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaisailovic committed Feb 13, 2024
1 parent 96999b6 commit 7d4bbb3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions apps/laboratory/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const PERMUTATIONS = DEVICES.flatMap(device => LIBRARIES.map(library => ({ devic
export default defineConfig<ModalFixture>({
testDir: './tests',

fullyParallel: true,
retries: 0,
workers: 1,
fullyParallel: false,
retries: 3,
workers: 3,
reporter: process.env['CI']
? [['list'], ['html', { open: 'never' }]]
: [['list'], ['html', { host: '0.0.0.0' }]],
Expand Down
4 changes: 2 additions & 2 deletions apps/laboratory/tests/connect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ testMW(
return
}
await modalPage.sign()
await walletValidator.expectReceivedSign({chainName: DEFAULT_CHAIN_NAME})
await walletValidator.expectReceivedSign({ chainName: DEFAULT_CHAIN_NAME })
await walletPage.handleRequest({ accept: true })
await modalValidator.expectAcceptedSign()
}
Expand All @@ -51,7 +51,7 @@ testMW(
return
}
await modalPage.sign()
await walletValidator.expectReceivedSign({chainName: DEFAULT_CHAIN_NAME})
await walletValidator.expectReceivedSign({ chainName: DEFAULT_CHAIN_NAME })
await walletPage.handleRequest({ accept: false })
await modalValidator.expectRejectedSign()
}
Expand Down
4 changes: 2 additions & 2 deletions apps/laboratory/tests/shared/pages/ModalPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export class ModalPage {
await this.connectButton.click()
await this.page.getByTestId('wallet-selector-walletconnect').click()
await this.page.waitForTimeout(1500)
return await this.page.getByTestId('wui-qr-code').getAttribute('uri') || ''

return (await this.page.getByTestId('wui-qr-code').getAttribute('uri')) || ''
}

async loginWithEmail(email: string) {
Expand Down
1 change: 0 additions & 1 deletion apps/laboratory/tests/shared/pages/WalletPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class WalletPage {
await this.page.goto(this.baseURL)
}


/**
* Connect by copy pasting URI from clipboard
*/
Expand Down
2 changes: 1 addition & 1 deletion apps/laboratory/tests/shared/validators/ModalValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ModalValidator {
async expectAcceptedSign() {
// We use Chakra Toast and it's not quite straightforward to set the `data-testid` attribute on the toast element.
await expect(this.page.getByText(ConstantsUtil.SigningSucceededToastTitle)).toBeVisible({
timeout: 30*1000
timeout: 30 * 1000
})
}

Expand Down

0 comments on commit 7d4bbb3

Please sign in to comment.