Skip to content

Commit ab4a084

Browse files
test(frontend): target confirm payout button by role
1 parent 4355f3e commit ab4a084

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dechat/dex_with_fiat_frontend/tests/e2e/bank-details-modal.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ test.describe('BankDetailsModal — Step 3: confirm payout', () => {
205205
});
206206

207207
test('shows confirm payout screen with quote details', async ({ page }) => {
208-
await expect(page.getByText(/confirm/i)).toBeVisible();
208+
await expect(
209+
page.getByRole('button', { name: 'Confirm Payout' }),
210+
).toBeVisible();
209211
});
210212

211213
test('payout note field accepts text up to 160 characters', async ({ page }) => {

0 commit comments

Comments
 (0)