-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Giulia Ye
committed
Oct 30, 2024
1 parent
e457a13
commit 1296c27
Showing
13 changed files
with
52 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { test } from "./fixtures"; | ||
import YourOfferPage from "../src/lib/pages/life/yourOfferPage"; | ||
import HealthStatusPage from "../src/lib/pages/life/healthStatusPage"; | ||
import BeneficiariesPage from "../src/lib/pages/life/beneficiariesPage"; | ||
import PersonalDataPage from "../src/lib/pages/life/personalDataPage"; | ||
import CheckoutPage from "../src/lib/pages/life/checkoutPage"; | ||
|
||
test.describe("Autofill", () => { | ||
test(`in /vita path, when user goes to the next page, should still render path box`, async ({ | ||
page, | ||
context, | ||
extensionId, | ||
}) => { | ||
const extensionPage = await context.newPage(); | ||
await page.goto(`https://calc-dev.vitesicure.it/vita/preventivatore`); | ||
|
||
await page.waitForLoadState("networkidle"); | ||
|
||
await extensionPage.goto( | ||
`chrome-extension://${extensionId}/src/entries/popup/index.html`, | ||
); | ||
|
||
await page.waitForTimeout(1000); | ||
await extensionPage.getByText("Autofill and go to next page").dblclick(); | ||
|
||
await page.bringToFront(); | ||
await page.waitForURL(`**/${YourOfferPage.path}**`); | ||
|
||
await page.waitForTimeout(1000); | ||
await extensionPage.getByText("Autofill and go to next page").dblclick(); | ||
await page.waitForURL(`**/${HealthStatusPage.path}`); | ||
|
||
await page.waitForTimeout(1000); | ||
await extensionPage.getByText("Autofill and go to next page").dblclick(); | ||
await page.waitForURL(`**/${BeneficiariesPage.path}`, { timeout: 50000 }); | ||
|
||
await page.waitForTimeout(1000); | ||
await extensionPage.getByText("Autofill and go to next page").dblclick(); | ||
await page.waitForURL(`**/${PersonalDataPage.path}`); | ||
|
||
await page.waitForTimeout(1000); | ||
await extensionPage.getByText("Autofill and go to next page").dblclick(); | ||
await page.waitForURL(`**/${CheckoutPage.path}`); | ||
await page.waitForTimeout(1000); | ||
await extensionPage.getByText("Autofill and go to next page").dblclick(); | ||
await page.waitForURL(`**/grazie**`, { timeout: 30000 }); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.