diff --git a/packages/e2e-react/src/App.tsx b/packages/e2e-react/src/App.tsx index 5be050dd0..d0f16785a 100644 --- a/packages/e2e-react/src/App.tsx +++ b/packages/e2e-react/src/App.tsx @@ -4,9 +4,8 @@ import { EmbeddedChat } from "@embeddedchat/react"; function App() { return ( ); } diff --git a/packages/e2e-react/tests/example.spec.ts b/packages/e2e-react/tests/example.spec.ts index e309eeb4e..1189f4442 100644 --- a/packages/e2e-react/tests/example.spec.ts +++ b/packages/e2e-react/tests/example.spec.ts @@ -1,18 +1,13 @@ -import { test, expect } from '@playwright/test'; +import { test, expect } from "@playwright/test"; -test('EmbeddedChat should render', async ({ page }) => { - await page.goto('/'); - await expect(page.locator('.ec-embedded-chat')).toBeVisible(); +test("EmbeddedChat should render", async ({ page }) => { + await page.goto("/"); + await expect(page.locator(".ec-embedded-chat")).toBeVisible(); }); -test('EmbeddedChat has a title', async ({ page }) => { - await page.goto('/'); - await expect(page.locator('.ec-chat-header--channelName')).toHaveText('Login to chat'); -}); - -test('EmbeddedChat has messages', async ({ page }) => { - await page.goto('/'); - - await page.waitForSelector('.ec-message'); - expect(await page.locator('.ec-message').count()).toBeGreaterThan(0); +test("EmbeddedChat has a title", async ({ page }) => { + await page.goto("/"); + await expect(page.locator(".ec-chat-header--channelName")).toHaveText( + "Login to chat" + ); });