Skip to content

Commit

Permalink
chore: improve ci stability
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Jul 17, 2023
1 parent 858169d commit 77d5a73
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
METAMASK_MNEMONIC: ${{ inputs.metamask-seed }}
METAMASK_PASSWORD: ${{ inputs.metamask-password }}
METAMASK_SNAP_ID: ${{ inputs.metamask-snap-id }}
MEtAMASK_SNAP_VERSION: ${{ inputs.metamask-snap-version }}
METAMASK_SNAP_VERSION: ${{ inputs.metamask-snap-version }}
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export async function snapDialog(
params,
})

return result as boolean
return result === true
}
/**
* Update the messages in the state
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/test/e2e/1-methods.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ test.describe('filsnap testnet', () => {
const from = 't1pc2apytmdas3sn5ylwhfa32jfpx7ez7ykieelna'
const to = 't1sfizuhpgjqyl4yjydlebncvecf3q2cmeeathzwi'

metamask.on('notification', (page) => {
void page.getByRole('button').filter({ hasText: 'Approve' }).click()
metamask.on('notification', async (page) => {
await page.getByRole('button').filter({ hasText: 'Approve' }).click()
})

const message = {
Expand All @@ -186,7 +186,7 @@ test.describe('filsnap testnet', () => {
})

if (signedMessageResponse.error != null) {
throw new Error('Failed to sign message')
throw new Error(signedMessageResponse.error.message)
}

const sendResponse = await metamask.invokeSnap<SendMessageResponse>({
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/test/e2e/messages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ test.describe('snap messages', () => {
const from = 't1pc2apytmdas3sn5ylwhfa32jfpx7ez7ykieelna'
const to = 't1sfizuhpgjqyl4yjydlebncvecf3q2cmeeathzwi'

metamask.on('notification', (page) => {
void page.getByRole('button').filter({ hasText: 'Approve' }).click()
metamask.on('notification', async (page) => {
await page.getByRole('button').filter({ hasText: 'Approve' }).click()
})

const message = {
Expand Down

0 comments on commit 77d5a73

Please sign in to comment.