Skip to content

Commit

Permalink
Remove fix for drop-in v5.32.0 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Aug 16, 2023
1 parent d5e3cd6 commit 93fc633
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/checkout/dropin-card.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ test('Dropin Card', async ({ page }) => {

// Click "Credit or debit card"
const radioButton = await page.getByRole('radio', { name: 'Credit or debit card' });
if (await radioButton.count() === 0) {
// Click normal button for < Adyen-Web 5.32.x or lower
await page.getByRole('button', { name: 'Credit or debit card' }).click();
}
else {
// Click radio button for > Adyen-Web 5.33.x or higher
await radioButton.click();
}
await radioButton.click();

// Wait for network state to be idle
await page.waitForLoadState('networkidle')
Expand Down

0 comments on commit 93fc633

Please sign in to comment.