generated from Dev-FE-1/Toy_Project_III_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b508c1
commit dc448f0
Showing
4 changed files
with
49 additions
and
37 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('SignInPage', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto('/signin'); | ||
await page.waitForLoadState('networkidle'); | ||
}); | ||
|
||
test("페이지의 url은 '/signin'이어야한다", async ({ page }) => { | ||
await expect(page).toHaveURL('/signin'); | ||
}); | ||
|
||
test('페이지의 모든 요소가 화면에 표시되어야한다', async ({ page }) => { | ||
await expect(page.locator('div.swiper')).toBeVisible(); | ||
|
||
const chatBubble = page.locator('p').filter({ hasText: '5초만에 시작하기' }); | ||
await expect(chatBubble).toBeVisible(); | ||
|
||
const signInButton = page.getByRole('button', { name: 'Google로 계속하기' }); | ||
await expect(signInButton).toBeVisible(); | ||
|
||
const description = page.locator('p.description'); | ||
await expect(description).toContainText('최초 로그인 시 계정을 생성하며'); | ||
}); | ||
|
||
test('swiper가 올바르게 동작해야한다', async ({ page }) => { | ||
await expect(page.locator('div.swiper-wrapper')).toBeVisible(); | ||
const activeSlide = page.locator('.swiper-slide-active'); | ||
await expect(activeSlide).toBeVisible(); | ||
await expect(activeSlide).toContainText('내 취향을 공유하고'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.