Skip to content

Commit

Permalink
Remove wait and add to block billing address.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Aug 28, 2024
1 parent f27cebb commit 924c73c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/specs/product.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ test.describe('Product Tests', () => {
const addToCardButton = await page.locator(
'.single_add_to_cart_button'
);
await page.waitForTimeout(1000);

await expect(
page.locator('.wc-bookings-booking-cost .booking-error')
).toContainText(
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ export async function addToCart(page) {
* @param {Object} customerDetails Customer billing details
*/
export async function blockFillBillingDetails(page, customerDetails) {
await page.waitForTimeout(3000);
const card = await page.locator('.wc-block-components-address-card');
if (await card.isVisible()) {
await card.locator('.wc-block-components-address-card__edit').click();
Expand Down

0 comments on commit 924c73c

Please sign in to comment.