update test to select state

This commit is contained in:
Damodar Lohani
2025-08-05 02:05:29 +00:00
parent b7ab1d7044
commit 3d89151faf
+2
View File
@@ -20,6 +20,8 @@ export async function enterCreditCard(page: Page) {
await stripe.locator('id=Field-cvcInput').fill('123');
await stripe.locator('id=Field-countryInput').selectOption('DE');
await dialog.getByRole('button', { name: 'Add', exact: true }).click();
await page.locator('id=state-picker').selectOption('AS');
await page.getByRole('button', { name: 'Add', exact: true }).click();
await dialog.waitFor({
state: 'hidden'
});