This commit is contained in:
Florian Zia 2024-02-08 15:18:35 +01:00 коммит произвёл Vincent
Родитель 4cc6462cc8
Коммит 26d73ab363
4 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -139,7 +139,7 @@ SUBSCRIPTION_BILLING_AMOUNT_MONTHLY_US=42.42
# was released to the welcome flow. Users who had signed up before and thus
# have seen data breach results before, will be able to see their known breaches
# first:
BROKER_SCAN_RELEASE_DATE=2025-02-06
BROKER_SCAN_RELEASE_DATE=2024-02-06
MONTHLY_SUBSCRIBERS_QUOTA=
MONTHLY_SCANS_QUOTA=

3
.github/workflows/e2e_pr.yml поставляемый
Просмотреть файл

@ -78,6 +78,9 @@ jobs:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/blurts
HIBP_KANON_API_TOKEN: ${{ secrets.HIBP_KANON_API_TOKEN }}
HIBP_API_TOKEN: ${{ secrets.HIBP_API_TOKEN }}
# Our tests are currently set up to expect accounts to act like
# old user accounts, so let's pretend they all are:
BROKER_SCAN_RELEASE_DATE: "3000-12-31"
- uses: actions/upload-artifact@v3
if: always()
with:

Просмотреть файл

@ -36,7 +36,7 @@ export class AuthPage {
async enterEmail(email: string) {
await this.emailInputField.fill(email);
await this.continue({ waitForURL: "**/accounts.stage.mozaws.net/**" });
await this.continue({ waitForURL: "**/oauth/**" });
}
async enterPassword() {
@ -60,7 +60,7 @@ export class AuthPage {
process.env.E2E_TEST_ACCOUNT_PASSWORD as string,
);
await this.ageInputField.type("31");
await this.continue({ waitForURL: "**/accounts.stage.mozaws.net/**" });
await this.continue({ waitForURL: "**/oauth/**" });
const vc = await getVerificationCode(email, page);
await this.enterVerificationCode(vc);
}

Просмотреть файл

@ -27,7 +27,10 @@ test.describe(`${process.env.E2E_TEST_ENV} - Authentication flow verification @s
await authPage.signUp(randomEmail, page);
// assert successful login
const successUrl = "/user/dashboard";
const successUrl =
process.env.E2E_TEST_ENV === "local"
? "/user/dashboard"
: "/user/welcome";
expect(page.url()).toBe(`${process.env.E2E_TEST_BASE_URL}${successUrl}`);
await testInfo.attach(