Skip to content

Commit

Permalink
fix: btn order fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fess-v committed Oct 4, 2023
1 parent d05300c commit 181cf9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 181cf9d

Please sign in to comment.