-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed playwright message test as abhinav server is no longer workin…
…g, and demo.qa doesn't support anonymousMode
- Loading branch information
1 parent
158af13
commit 652e690
Showing
2 changed files
with
11 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
); | ||
}); |