From 652e6902235c9f512430a455db6b3260822300ca Mon Sep 17 00:00:00 2001 From: Zishan Ahmad Date: Thu, 5 Sep 2024 11:25:24 +0530 Subject: [PATCH] removed playwright message test as abhinav server is no longer working, and demo.qa doesn't support anonymousMode --- packages/e2e-react/src/App.tsx | 5 ++--- packages/e2e-react/tests/example.spec.ts | 23 +++++++++-------------- 2 files changed, 11 insertions(+), 17 deletions(-) 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" + ); });