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:
giancarlo
2024-04-12 18:51:06 +08:00
parent 477b8f0d52
commit f7de3ea9c4
8 changed files with 63 additions and 35 deletions

View File

@@ -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();