mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 09:29:10 +00:00
add wait for page navigation to applicable tests
This commit is contained in:
parent
b75e4172b4
commit
82be561bfe
@ -61,6 +61,8 @@ describe("test App end to end", async () => {
|
|||||||
let review_card = await page.$("review-card");
|
let review_card = await page.$("review-card");
|
||||||
await review_card.click();
|
await review_card.click();
|
||||||
|
|
||||||
|
await page.waitForNavigation();
|
||||||
|
|
||||||
// Click the button to show update form
|
// Click the button to show update form
|
||||||
let update_btn = await page.$("update-btn");
|
let update_btn = await page.$("update-btn");
|
||||||
await update_btn.click();
|
await update_btn.click();
|
||||||
@ -133,6 +135,8 @@ describe("test App end to end", async () => {
|
|||||||
let home_btn = await page.$("#home-btn");
|
let home_btn = await page.$("#home-btn");
|
||||||
home_btn.click();
|
home_btn.click();
|
||||||
|
|
||||||
|
await page.waitForNavigation();
|
||||||
|
|
||||||
// Get the review card again and get its shadowRoot
|
// Get the review card again and get its shadowRoot
|
||||||
let review_card = await page.$("review-card");
|
let review_card = await page.$("review-card");
|
||||||
let shadowRoot = await review_card.getProperty("shadowRoot");
|
let shadowRoot = await review_card.getProperty("shadowRoot");
|
||||||
|
Loading…
Reference in New Issue
Block a user