From 7563a9d1495ac25d6b308b0c4a10a6e55d6ef7d9 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Fri, 5 Jul 2024 21:16:41 +0200 Subject: [PATCH] chore(tests): Fix failing kitchen-sink tests by logging in (#10920) --- .../rsc-kitchen-sink/tests/rsc-kitchen-sink.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/smoke-tests/rsc-kitchen-sink/tests/rsc-kitchen-sink.spec.ts b/tasks/smoke-tests/rsc-kitchen-sink/tests/rsc-kitchen-sink.spec.ts index 851e147be08b..b25a6bbc06e4 100644 --- a/tasks/smoke-tests/rsc-kitchen-sink/tests/rsc-kitchen-sink.spec.ts +++ b/tasks/smoke-tests/rsc-kitchen-sink/tests/rsc-kitchen-sink.spec.ts @@ -107,6 +107,8 @@ test('Submitting the form should return a response', async ({ page }) => { }) test('Page with Cell', async ({ page }) => { + await loginAsTestUser({ page, ...testUser }) + await page.goto('/user-examples') const h1 = await page.locator('h1').innerHTML() @@ -118,6 +120,8 @@ test('Page with Cell', async ({ page }) => { }) test("'use client' cell Empty state", async ({ page }) => { + await loginAsTestUser({ page, ...testUser }) + await page.goto('/empty-users') const h1 = await page.locator('h1').innerHTML() @@ -132,6 +136,8 @@ test("'use client' cell Empty state", async ({ page }) => { }) test("'use client' cell navigation", async ({ page }) => { + await loginAsTestUser({ page, ...testUser }) + await page.goto('/empty-users') await expect(page.getByText('No emptyUsers yet.')).toBeVisible()