Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Mar 27, 2024
1 parent 9ae3538 commit d620da4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apps/laboratory/tests/canary.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ const ENV = process.env['ENVIRONMENT'] || 'dev'
const REGION = process.env['REGION'] || 'eu-central-1'

testConnectedMW.beforeEach(async ({ modalValidator, walletValidator }) => {
// eslint-disable-next-line no-console
console.time('beforeEach expectConnection')
await expectConnection(modalValidator, walletValidator)
// eslint-disable-next-line no-console
console.timeEnd('beforeEach expectConnection')
})

Expand All @@ -17,6 +19,7 @@ testConnectedMW.afterEach(async ({ browserName }, testInfo) => {
}

if (ENV !== 'dev') {
// eslint-disable-next-line no-console
console.time('uploadCanaryResultsToCloudWatch')
const duration: number = testInfo.duration
await uploadCanaryResultsToCloudWatch(
Expand All @@ -27,33 +30,48 @@ testConnectedMW.afterEach(async ({ browserName }, testInfo) => {
testInfo.status === 'passed',
duration
)
// eslint-disable-next-line no-console
console.timeEnd('uploadCanaryResultsToCloudWatch')
}
})

testConnectedMW(
'it should sign',
async ({ modalPage, walletPage, modalValidator, walletValidator }) => {
// eslint-disable-next-line no-console
console.time('modalPage.sign()')
await modalPage.sign()
// eslint-disable-next-line no-console
console.timeEnd('modalPage.sign()')
// eslint-disable-next-line no-console
console.time('walletValidator.expectReceivedSign')
await walletValidator.expectReceivedSign({})
// eslint-disable-next-line no-console
console.timeEnd('walletValidator.expectReceivedSign')
// eslint-disable-next-line no-console
console.time('walletPage.handleRequest')
await walletPage.handleRequest({ accept: true })
// eslint-disable-next-line no-console
console.timeEnd('walletPage.handleRequest')
// eslint-disable-next-line no-console
console.time('modalValidator.expectAcceptedSign')
await modalValidator.expectAcceptedSign()
// eslint-disable-next-line no-console
console.timeEnd('modalValidator.expectAcceptedSign')
// eslint-disable-next-line no-console
console.time('modalPage.disconnect')
await modalPage.disconnect()
// eslint-disable-next-line no-console
console.timeEnd('modalPage.disconnect')
// eslint-disable-next-line no-console
console.time('modalValidator.expectDisconnected')
await modalValidator.expectDisconnected()
// eslint-disable-next-line no-console
console.timeEnd('modalValidator.expectDisconnected')
// eslint-disable-next-line no-console
console.time('walletValidator.expectDisconnected')
await walletValidator.expectDisconnected()
// eslint-disable-next-line no-console
console.timeEnd('walletValidator.expectDisconnected')
}
)

0 comments on commit d620da4

Please sign in to comment.