Update data-loader-supabase-nextjs version and refactor e2e tests
This commit involves updating the version of @makerkit/data-loader-supabase-nextjs to ^1.0.0 across multiple components. The end-to-end tests for team-accounts have also been refactored to improve their reliability and accuracy. Additionally, a new `.env.test` file has been added for improved testing.
This commit is contained in:
@@ -12,13 +12,13 @@ test.describe('Team Accounts', () => {
|
||||
await teamAccounts.setup();
|
||||
});
|
||||
|
||||
test('user can update their profile name', async () => {
|
||||
test('user can update their team name (and slug)', async () => {
|
||||
const {teamName, slug} = teamAccounts.createTeamName();
|
||||
|
||||
await teamAccounts.goToSettings();
|
||||
|
||||
await teamAccounts.updateName(teamName);
|
||||
|
||||
// the slug should be updated to match the new team name
|
||||
await page.waitForURL(`http://localhost:3000/home/${slug}/settings`);
|
||||
|
||||
await expect(await teamAccounts.getTeamFromSelector(slug)).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user