Merge remote-tracking branch 'upstream/master' into migrate-to-@hey-api/openapi-ts-0.97.3

This commit is contained in:
Yurii Motov
2026-07-31 17:19:16 +02:00
38 changed files with 158 additions and 189 deletions
+6 -8
View File
@@ -56,13 +56,11 @@ test("User can reset password successfully using the link", async ({
const selector = 'a[href*="/reset-password?token="]'
let url = await page.getAttribute(selector, "href")
// TODO: update var instead of doing a replace
url = url!.replace("http://localhost/", "http://localhost:5173/")
const url = await page.getAttribute(selector, "href")
const resetUrl = new URL(url!)
// Set the new password and confirm it
await page.goto(url)
await page.goto(`${resetUrl.pathname}${resetUrl.search}`)
await page.getByTestId("new-password-input").fill(newPassword)
await page.getByTestId("confirm-password-input").fill(newPassword)
@@ -110,11 +108,11 @@ test("Weak new password validation", async ({ page, request }) => {
)
const selector = 'a[href*="/reset-password?token="]'
let url = await page.getAttribute(selector, "href")
url = url!.replace("http://localhost/", "http://localhost:5173/")
const url = await page.getAttribute(selector, "href")
const resetUrl = new URL(url!)
// Set a weak new password
await page.goto(url)
await page.goto(`${resetUrl.pathname}${resetUrl.search}`)
await page.getByTestId("new-password-input").fill(weakPassword)
await page.getByTestId("confirm-password-input").fill(weakPassword)
await page.getByRole("button", { name: "Reset Password" }).click()