Skip to content

Commit e1586f2

Browse files
committed
test(admin): minor updates to sites tests
1 parent acb864a commit e1586f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/e2e/admin/sites.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@ test.describe('Sites', () => {
5656
await expect(page.getByText('Created!')).toBeVisible();
5757

5858
await page.goto('/admin/sites');
59+
await expect(page.getByText('1 sites')).toBeVisible();
5960
await expect(
6061
page.getByRole('cell', { name: 'My Test Site' }),
6162
).toBeVisible();
62-
await expect(page.getByText('1 sites')).toBeVisible();
63+
await expect(
64+
page.getByRole('cell', { name: 'https://example.com/mytestsite' }),
65+
).toBeVisible();
6366
});
6467

65-
test("shouldn't be able to add site without permissions", async ({
66-
page,
67-
}) => {
68+
test('should fail to add site without permissions', async ({ page }) => {
6869
await login(page, testUsers.testRolelessUser);
6970
await page.goto('/admin/sites');
7071

0 commit comments

Comments
 (0)