-
Notifications
You must be signed in to change notification settings - Fork 205
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
Showing
12 changed files
with
1,059 additions
and
1,091 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Build | ||
|
||
on: [push] | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
npm-build: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Build Docker image check | ||
on: | ||
pull_request: | ||
types: [closed] | ||
jobs: | ||
docker_build: | ||
name: Build Docker image | ||
|
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
name: Deploy Preview | ||
|
||
on: | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
env: | ||
PROJECT_ID: ${{ secrets.GCP_PROJECT }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Unit Tests | ||
|
||
on: [push] | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
unit-tests: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,74 +4,71 @@ | |
|
||
import { test, expect } from "../fixtures/basePage.js"; | ||
|
||
test.describe.skip( | ||
`${process.env.E2E_TEST_ENV} - Authentication flow verification @smoke`, | ||
() => { | ||
test.beforeEach(async ({ landingPage }) => { | ||
await landingPage.open(); | ||
test.describe(`${process.env.E2E_TEST_ENV} - Authentication flow verification @smoke`, () => { | ||
test.beforeEach(async ({ landingPage }) => { | ||
await landingPage.open(); | ||
}); | ||
|
||
test("Verify sign up with new user", async ({ | ||
page, | ||
authPage, | ||
landingPage, | ||
}, testInfo) => { | ||
// speed up test by ignore non necessary requests | ||
await page.route(/(analytics)/, async (route) => { | ||
await route.abort(); | ||
}); | ||
|
||
test("Verify sign up with new user", async ({ | ||
page, | ||
authPage, | ||
landingPage, | ||
}, testInfo) => { | ||
// speed up test by ignore non necessary requests | ||
await page.route(/(analytics)/, async (route) => { | ||
await route.abort(); | ||
}); | ||
// start authentication flow | ||
await landingPage.goToSignIn(); | ||
|
||
// start authentication flow | ||
await landingPage.goToSignIn(); | ||
// Fill out sign up form | ||
const randomEmail = `${Date.now()}[email protected]`; | ||
await authPage.signUp(randomEmail, page); | ||
|
||
// Fill out sign up form | ||
const randomEmail = `${Date.now()}[email protected]`; | ||
await authPage.signUp(randomEmail, page); | ||
// assert successful login | ||
const successUrl = | ||
process.env.E2E_TEST_ENV === "local" | ||
? "/user/dashboard" | ||
: "/user/welcome"; | ||
expect(page.url()).toBe(`${process.env.E2E_TEST_BASE_URL}${successUrl}`); | ||
|
||
// assert successful login | ||
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( | ||
`${process.env.E2E_TEST_ENV}-signup-monitor-dashboard.png`, | ||
{ | ||
body: await page.screenshot(), | ||
contentType: "image/png", | ||
}, | ||
); | ||
}); | ||
|
||
await testInfo.attach( | ||
`${process.env.E2E_TEST_ENV}-signup-monitor-dashboard.png`, | ||
{ | ||
body: await page.screenshot(), | ||
contentType: "image/png", | ||
}, | ||
); | ||
test("Verify sign in with existing user", async ({ | ||
page, | ||
authPage, | ||
landingPage, | ||
dashboardPage, | ||
}, testInfo) => { | ||
// speed up test by ignore non necessary requests | ||
await page.route(/(analytics)/, async (route) => { | ||
await route.abort(); | ||
}); | ||
|
||
test("Verify sign in with existing user", async ({ | ||
page, | ||
authPage, | ||
landingPage, | ||
dashboardPage, | ||
}, testInfo) => { | ||
// speed up test by ignore non necessary requests | ||
await page.route(/(analytics)/, async (route) => { | ||
await route.abort(); | ||
}); | ||
|
||
// start authentication flow | ||
await landingPage.goToSignIn(); | ||
// start authentication flow | ||
await landingPage.goToSignIn(); | ||
|
||
// sign in | ||
await authPage.signIn(process.env.E2E_TEST_ACCOUNT_EMAIL as string); | ||
// sign in | ||
await authPage.signIn(process.env.E2E_TEST_ACCOUNT_EMAIL as string); | ||
|
||
// assert successful login | ||
await expect(dashboardPage.fixedTab).toBeVisible(); | ||
await expect(dashboardPage.actionNeededTab).toBeVisible(); | ||
// assert successful login | ||
await expect(dashboardPage.fixedTab).toBeVisible(); | ||
await expect(dashboardPage.actionNeededTab).toBeVisible(); | ||
|
||
await testInfo.attach( | ||
`${process.env.E2E_TEST_ENV}-signin-monitor-dashboard.png`, | ||
{ | ||
body: await page.screenshot(), | ||
contentType: "image/png", | ||
}, | ||
); | ||
}); | ||
}, | ||
); | ||
await testInfo.attach( | ||
`${process.env.E2E_TEST_ENV}-signin-monitor-dashboard.png`, | ||
{ | ||
body: await page.screenshot(), | ||
contentType: "image/png", | ||
}, | ||
); | ||
}); | ||
}); |
Oops, something went wrong.