Skip to content

Commit

Permalink
fix registerName bug
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Sep 30, 2024
1 parent 4884d4d commit 34d39ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/specs/stateless/registerName.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ test.describe.serial('normal registration', () => {
await test.step('should go to transactions step and open commit transaction immediately', async () => {
await expect(page.getByTestId('next-button')).toHaveText('Begin')
await page.getByTestId('next-button').click()
// expect the transaction modal is open
await expect(page.getByTestId('transaction-modal-inner')).toBeVisible()
})

await test.step('should fire tracking event: commit_started', async () => {
Expand Down Expand Up @@ -190,7 +190,7 @@ test.describe.serial('normal registration', () => {
})

await test.step('should show checkmark and registration ready state after countdown is finished', async () => {
await testClient.increaseTime({ seconds: 60 })
await time.increaseTime({ seconds: 60 })
await expect(page.getByTestId('countdown-complete-check')).toBeVisible()
await expect(
page.getByText(
Expand All @@ -216,6 +216,7 @@ test.describe.serial('normal registration', () => {

await test.step('should fire tracking event: register_started', async () => {
await expect(consoleListener.getMessages()).toHaveLength(1)
// We can assume that 'register_override_triggered' was not called because the consoleListener only has one message
await expect(consoleListener.getMessages().toString()).toContain('register_started')
consoleListener.clearMessages()
})
Expand All @@ -232,7 +233,7 @@ test.describe.serial('normal registration', () => {
})

await test.step('should redirect to completion page ', async () => {
// expect that page is on completion page
await expect(page.getByText(`You are now the owner of ${name}`)).toBeVisible()
await expect(page.getByTestId('invoice-item-0-amount')).toHaveText(/0.0032 ETH/)
})

Expand Down

0 comments on commit 34d39ee

Please sign in to comment.