-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/nv-3650-migrate-the-rest-cypress…
…-tests-to-the-playwright' into nv-3650-migrate-the-rest-cypress-tests-to-the-playwright
- Loading branch information
Showing
7 changed files
with
58 additions
and
25 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
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,8 +1,18 @@ | ||
import { test } from './utils.ts/baseTest'; | ||
import { initializeSession } from './utils.ts/browser'; | ||
|
||
test('auth user navigating to root gets directed to workflows', async ({ page, context }) => { | ||
await initializeSession(page); | ||
test.beforeEach(async ({ page }) => { | ||
const { featureFlagsMock } = await initializeSession(page); | ||
featureFlagsMock.setFlagsToMock({ | ||
IS_IMPROVED_ONBOARDING_ENABLED: false, | ||
IS_INFORMATION_ARCHITECTURE_ENABLED: false, | ||
IS_BILLING_REVERSE_TRIAL_ENABLED: false, | ||
IS_BILLING_ENABLED: false, | ||
IS_TEMPLATE_STORE_ENABLED: false, | ||
}); | ||
}); | ||
|
||
test('auth user navigating to root gets directed to workflows', async ({ page }) => { | ||
await page.goto('/'); | ||
await page.waitForURL('/workflows**'); | ||
}); |
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 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 |
---|---|---|
|
@@ -15,16 +15,15 @@ test.beforeEach(async ({ page }) => { | |
|
||
test('invite user by email', async ({ page }) => { | ||
const teamMembersPage = await TeamMembersPage.goTo(page); | ||
await waitForNetworkIdle(page); | ||
await teamMembersPage.assertNumberOfUsersInTeamMembersList(1); | ||
await teamMembersPage.inviteUserByEmail('[email protected]'); | ||
await teamMembersPage.assertNumberOfUsersInTeamMembersList(2); | ||
}); | ||
|
||
test('remove user from team', async ({ page }) => { | ||
const teamMembersPage = await TeamMembersPage.goTo(page); | ||
await waitForNetworkIdle(page); | ||
await teamMembersPage.inviteUserByEmail('[email protected]'); | ||
|
||
await teamMembersPage.assertNumberOfUsersInTeamMembersList(2); | ||
await teamMembersPage.removeUserFromTeam(); | ||
await page.waitForTimeout(300); | ||
|