Skip to content

Commit

Permalink
fix flaky extendNames test
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Oct 1, 2024
1 parent bed8dc5 commit 686c7f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/specs/stateless/extendNames.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ test('should be able to register multiple names on the address page', async ({

await addresPage.goto(address)
await login.connect()
await page.pause()

await addresPage.selectToggle.click()

Expand Down Expand Up @@ -72,7 +71,6 @@ test('should be able to register multiple names on the address page', async ({
await addresPage.extendNamesModalNextButton.click()

// check the invoice details
await page.pause()
await expect(page.getByText(`Extend ${extendableNameItems.length} Names`)).toBeVisible()
await expect(page.getByText('1 year extension', { exact: true })).toBeVisible()

Expand All @@ -83,11 +81,14 @@ test('should be able to register multiple names on the address page', async ({

await transactionModal.autoComplete()

await expect(page.getByText('Your "Extend names" transaction was successful')).toBeVisible({
timeout: 10000,
})
await subgraph.sync()
await page.waitForTimeout(3000)

// Should be able to remove this after useQuery is fixed. Using to force a refetch.
await time.increaseTime({ seconds: 15 })
await page.pause()
await page.reload()
for (const name of extendableNameItems) {
const label = name.replace('.eth', '')
Expand Down

0 comments on commit 686c7f1

Please sign in to comment.