Skip to content

Commit d0de0ad

Browse files
committed
✅ Test: 메인 페이지 렌더링 \& 비로그인 시 회의 시작 통합 테스트 추가
1 parent 7d50a7c commit d0de0ad

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

frontend/tests/main-page.spec.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { expect, test } from '@playwright/test';
2+
3+
test('메인 페이지 렌더링 테스트', async ({ page }) => {
4+
await page.goto('http://localhost:3000/');
5+
6+
// 상단바 렌더링
7+
await expect(page.getByRole('banner')).toBeVisible();
8+
9+
// 회의 시작 섹션 렌더링
10+
await expect(
11+
page.getByRole('heading', { name: '새 회의 시작' }),
12+
).toBeVisible();
13+
await expect(page.getByRole('button', { name: '시작하기' })).toBeVisible();
14+
15+
// 회의 참여하기 섹션 렌더링
16+
await expect(
17+
page.getByRole('heading', { name: '회의 참여하기' }),
18+
).toBeVisible();
19+
await expect(
20+
page.getByRole('textbox', { name: '회의 코드 또는 링크' }),
21+
).toBeVisible();
22+
await expect(page.getByRole('button', { name: '참여하기' })).toBeVisible();
23+
});
24+
25+
test('비로그인 시 회의 생성 실패 테스트', async ({ page }) => {
26+
await page.goto('http://localhost:3000/');
27+
28+
// 회의 시작하기 버튼 클릭 -> 회의 생성 실패 모달 표시
29+
await page.getByRole('button', { name: '시작하기' }).click();
30+
await expect(
31+
page.getByRole('heading', { name: '회의 생성 실패' }),
32+
).toBeVisible();
33+
});

0 commit comments

Comments
 (0)