From b4e136051a1e7955469fa705fc722abc15381dcf Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Mon, 2 Dec 2024 10:13:40 +0800 Subject: [PATCH] Update registerName.spec.ts --- e2e/specs/stateless/registerName.spec.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e2e/specs/stateless/registerName.spec.ts b/e2e/specs/stateless/registerName.spec.ts index d4ccb4326..38d86e3d5 100644 --- a/e2e/specs/stateless/registerName.spec.ts +++ b/e2e/specs/stateless/registerName.spec.ts @@ -204,11 +204,10 @@ test.describe.serial('normal registration', () => { }) await test.step('should be able to start registration step', async () => { - await expect( - page.getByText( - 'Your name is not registered until you’ve completed the second transaction. You have 23 hours remaining to complete it.', - ), - ).toBeVisible() + await expect(page.getByTestId('transactions-subheading')).toBeVisible() + await expect(page.getByTestId('transactions-subheading')).toHaveText( + /Your name is not registered until you’ve completed the second transaction. You have (23 hours|1 day) remaining to complete it./, + ) await page.getByTestId('finish-button').click() })