Skip to content

Commit

Permalink
removed playwright message test as abhinav server is no longer workin…
Browse files Browse the repository at this point in the history
…g, and demo.qa doesn't support anonymousMode
  • Loading branch information
Spiral-Memory committed Sep 5, 2024
1 parent 158af13 commit 652e690
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
5 changes: 2 additions & 3 deletions packages/e2e-react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { EmbeddedChat } from "@embeddedchat/react";
function App() {
return (
<EmbeddedChat
host="https://chat.avitechlab.com"
roomId="GENERAL"
anonymousMode={true}
host="https://demo.qa.rocket.chat/"
roomId="66ccc4f1e050428c76256939"
/>
);
}
Expand Down
23 changes: 9 additions & 14 deletions packages/e2e-react/tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -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"
);
});

0 comments on commit 652e690

Please sign in to comment.