Update Next.js version across dependencies
The Next.js version has been updated across multiple dependencies in the pnpm-lock file. This ensures consistency, removes instances of the canary version, and aligns all packages to use the stable 14.2.0 release.
This commit is contained in:
44
apps/e2e/tests/team-accounts/team-accounts.spec.ts
Normal file
44
apps/e2e/tests/team-accounts/team-accounts.spec.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { expect, Page, test } from '@playwright/test';
|
||||
import { TeamAccountsPageObject } from './team-accounts.po';
|
||||
|
||||
test.describe('Team Accounts', () => {
|
||||
let page: Page;
|
||||
let teamAccounts: TeamAccountsPageObject;
|
||||
|
||||
test.beforeAll(async ({ browser }) => {
|
||||
page = await browser.newPage();
|
||||
teamAccounts = new TeamAccountsPageObject(page);
|
||||
|
||||
await teamAccounts.setup();
|
||||
});
|
||||
|
||||
test('user can update their profile name', async () => {
|
||||
const {teamName, slug} = teamAccounts.createTeamName();
|
||||
|
||||
await teamAccounts.goToSettings();
|
||||
|
||||
await teamAccounts.updateName(teamName);
|
||||
|
||||
await page.waitForURL(`http://localhost:3000/home/${slug}/settings`);
|
||||
|
||||
await expect(await teamAccounts.getTeamFromSelector(slug)).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('Account Deletion', () => {
|
||||
test('user can delete their team account', async ({ page }) => {
|
||||
const teamAccounts = new TeamAccountsPageObject(page);
|
||||
const params = teamAccounts.createTeamName();
|
||||
|
||||
await teamAccounts.setup(params);
|
||||
await teamAccounts.goToSettings();
|
||||
|
||||
await teamAccounts.deleteAccount(params.teamName);
|
||||
|
||||
await page.waitForURL('http://localhost:3000/home');
|
||||
|
||||
expect(page.url()).toEqual('http://localhost:3000/home');
|
||||
|
||||
await expect(await teamAccounts.getTeamFromSelector(params.slug)).not.toBeVisible();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user