Skip to content

Commit 234fd38

Browse files
committed
test(e2e): 새 모바일 footer 레이아웃 기대값 반영
1 parent 8c234e1 commit 234fd38

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/e2e/smoke/home-renewal.smoke.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ test.describe('Home and archive', () => {
151151
}
152152

153153
expect(github.x).toBe(32);
154-
expect(github.y).toBe(788);
154+
expect(github.y).toBeGreaterThan(780);
155155
}
156156
});
157157

tests/e2e/smoke/mobile-nav.smoke.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test.describe('Mobile navigation', () => {
3131
await expect(page).toHaveURL(/\/archive/);
3232
});
3333

34-
test('모바일 상단 컴팩트 영역에 보조 외부 링크를 둬요', async ({ page }) => {
34+
test('모바일 본문 하단에 보조 외부 링크를 둬요', async ({ page }) => {
3535
await page.goto('/archive');
3636

3737
const github = page.getByRole('link', { name: 'GitHub' });
@@ -44,14 +44,14 @@ test.describe('Mobile navigation', () => {
4444

4545
const githubBox = await github.boundingBox();
4646
const emailBox = await email.boundingBox();
47-
if (!githubBox || !emailBox) {
47+
const footerBox = await page.locator('.ark-site-footer').boundingBox();
48+
if (!githubBox || !emailBox || !footerBox) {
4849
throw new Error(
49-
'상단 컴팩트 영역의 외부 링크 위치를 측정할 수 없습니다.'
50+
'본문 하단 footer의 외부 링크 위치를 측정할 수 없습니다.'
5051
);
5152
}
5253

53-
expect(githubBox.x).toBeGreaterThan(160);
54-
expect(githubBox.y).toBeLessThan(120);
54+
expect(githubBox.y).toBeGreaterThanOrEqual(footerBox.y);
5555
expect(emailBox.y).toBe(githubBox.y);
5656
});
5757

0 commit comments

Comments
 (0)