Skip to content

Commit

Permalink
Edit playwright test
Browse files Browse the repository at this point in the history
  • Loading branch information
lovephimu committed Jan 26, 2024
1 parent d909649 commit 0a48010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default function Chat() {
<div className="h-auto flex justify-between mt-5 p-1 bg-primaryPink border-primaryPink rounded-xl text-primaryBlue items-center relative">
<span
className={`text-sm font-extralight absolute top-[-18px] right-[5rem] ${
newMessage.length > globalCharacterLimit
newMessage.length >= globalCharacterLimit
? 'text-red-400'
: 'text-primaryPink'
}`}
Expand Down
4 changes: 2 additions & 2 deletions playwright/startUp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { expect, test } from '@playwright/test';
test('input test', async ({ page }) => {
await page.goto('http://localhost:3000');

await expect(page.locator('[id="chat-logo"]')).toBeVisible();
// await expect(page.locator('[id="chat-logo"]')).toBeVisible();

await expect(page.getByRole('textbox')).toBeVisible();
await page.getByRole('textbox').fill('this is playwright test');
await page.getByRole('textbox').fill('this is a playwright test');
await page.getByRole('button', { name: 'Send' }).click();
await expect(page.getByRole('textbox')).toHaveValue('');
});

0 comments on commit 0a48010

Please sign in to comment.