Skip to content

Commit

Permalink
Tweak admin panel order creation flow for even further stability
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkiravul committed Feb 13, 2024
1 parent 24857da commit cd2a391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export class AdminOrderCreationPage extends AdminPanelPage {
"//td[@data-column='name' and contains(text(),'Veronica Costello')]"
);
this.addProductsButton = page.locator("#add_products");
this.erikaRunningShorts = page.getByRole('cell', { name: 'Erika Running Short-32-Red' });

this.productDataGrid = page.locator("#sales_order_create_search_grid_table");
this.erikaRunningShorts = this.productDataGrid.getByRole('cell', { name: 'Erika Running Short-32-Red' });
this.addProductsToOrderButton = page.locator(
"button[title='Add Selected Product(s) to Order']"
);
Expand Down
2 changes: 1 addition & 1 deletion projects/magento/pageObjects/plugin/AdminPanel.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class AdminPanelPage {
}

async waitForPageLoad(page) {
await page.waitForLoadState("domcontentloaded", { timeout: 10000 });
await page.waitForLoadState("load", { timeout: 10000 });
}

async goToOrdersPage() {
Expand Down

0 comments on commit cd2a391

Please sign in to comment.