From 181cf9dd834e50fcbd9f65c440e5c4a2ed29b636 Mon Sep 17 00:00:00 2001 From: Fess Date: Wed, 4 Oct 2023 19:35:17 +0400 Subject: [PATCH] fix: btn order fix test --- tests/specs/rpc-stacks-transaction/transaction-signing.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/specs/rpc-stacks-transaction/transaction-signing.spec.ts b/tests/specs/rpc-stacks-transaction/transaction-signing.spec.ts index 7643741f918..ecd8d7a62f0 100644 --- a/tests/specs/rpc-stacks-transaction/transaction-signing.spec.ts +++ b/tests/specs/rpc-stacks-transaction/transaction-signing.spec.ts @@ -20,10 +20,10 @@ test.describe('Transaction signing', () => { function checkVisibleContent(context: BrowserContext) { return async (buttonToPress: 'Cancel' | 'Confirm') => { const popup = await context.waitForEvent('page'); - const btn = popup.locator('text="Confirm"'); await popup.waitForSelector('text="' + TEST_ACCOUNT_2_STX_ADDRESS + '"'); await popup.waitForSelector(`text="${500 * 0.000001}"`); await popup.waitForTimeout(500); + const btn = popup.locator('text="Confirm"'); if (buttonToPress === 'Confirm') { await btn.click();