👷 Improve Playwright CI speed: sharding (paralel runs), run in Docker to use cache, use env vars (#1405)
This commit is contained in:

committed by
GitHub

parent
d3d370cad0
commit
e684f3c8d6
@@ -50,7 +50,9 @@ test("User can reset password successfully using the link", async ({
|
||||
timeout: 5000,
|
||||
})
|
||||
|
||||
await page.goto(`http://localhost:1080/messages/${emailData.id}.html`)
|
||||
await page.goto(
|
||||
`${process.env.MAILCATCHER_HOST}/messages/${emailData.id}.html`,
|
||||
)
|
||||
|
||||
const selector = 'a[href*="/reset-password?token="]'
|
||||
|
||||
@@ -103,7 +105,9 @@ test("Weak new password validation", async ({ page, request }) => {
|
||||
timeout: 5000,
|
||||
})
|
||||
|
||||
await page.goto(`http://localhost:1080/messages/${emailData.id}.html`)
|
||||
await page.goto(
|
||||
`${process.env.MAILCATCHER_HOST}/messages/${emailData.id}.html`,
|
||||
)
|
||||
|
||||
const selector = 'a[href*="/reset-password?token="]'
|
||||
let url = await page.getAttribute(selector, "href")
|
||||
|
@@ -10,7 +10,7 @@ async function findEmail({
|
||||
request,
|
||||
filter,
|
||||
}: { request: APIRequestContext; filter?: (email: Email) => boolean }) {
|
||||
const response = await request.get("http://localhost:1080/messages")
|
||||
const response = await request.get(`${process.env.MAILCATCHER_HOST}/messages`)
|
||||
|
||||
let emails = await response.json()
|
||||
|
||||
|
Reference in New Issue
Block a user