Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Jan 18, 2024
1 parent 9337c1e commit 5c8a7b4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/rcbilling-demo/src/tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ describe.sequential("E2E tests", () => {
// Go back to main page
const rcbRoot = await page.$(".rcb-ui-root");
expect(rcbRoot).not.toBeNull();
await page.screenshot({ path: "artifacts/screenshot.png" });
// await page.screenshot({ path: "artifacts/screenshot.png" });
// await expectElementContainsText(rcbRoot!, "Purchase Successful");
// const returnHomeButton = await rcbRoot?.$(".intent-secondary");
// expect(returnHomeButton).not.toBeNull();
// await returnHomeButton?.click();
// await page.waitForNavigation();
//
// // Needed since there is an animation after tapping on the button
// // to go back to main page.
// await waitMilliseconds(5000);
// expect(await page.$(`::-p-text(Success!)`)).not.toBeNull();
const returnHomeButton = await rcbRoot?.$(".intent-secondary");
expect(returnHomeButton).not.toBeNull();
await returnHomeButton?.click();
await page.waitForNavigation();

// Needed since there is an animation after tapping on the button
// to go back to main page.
await waitMilliseconds(5000);
expect(await page.$(`::-p-text(Success!)`)).not.toBeNull();
await browser.close();
},
{ timeout: 30000, retry: 3 },
Expand Down

0 comments on commit 5c8a7b4

Please sign in to comment.