Skip to content

Commit

Permalink
test(playwright): template 조회시 /login endpoint 제거 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Hain-tain committed Oct 17, 2024
1 parent 06dd488 commit 783023b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/playwright/tests/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('검색창에 `검색테스트`를 입력하면 `검색테스트`가 내용

await searchTemplates({ page, keyword });

await waitForSuccess({ page, apiUrl: '/templates/login?keyword' });
await waitForSuccess({ page, apiUrl: '/templates?keyword' });
await expect(page.getByRole('link', { name: /검색테스트/ })).toBeVisible();
});

Expand All @@ -23,6 +23,6 @@ test('검색창에 `ㅁㅅㅌㅇ`를 입력할 경우 `검색 결과가 없습

await searchTemplates({ page, keyword });

await waitForSuccess({ page, apiUrl: '/templates/login?keyword' });
await waitForSuccess({ page, apiUrl: '/templates?keyword' });
await expect(page.locator('div').filter({ hasText: /^검색 결과가 없습니다\.$/ })).toBeVisible();
});
2 changes: 1 addition & 1 deletion frontend/playwright/tests/templates.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test('템플릿 카드를 누르면 템플릿 제목, 설명, 작성자, 생성
}) => {
await page.goto('/my-templates');
// 템플릿 목록
await waitForSuccess({ page, apiUrl: '/templates/login?keyword' });
await waitForSuccess({ page, apiUrl: '/templates?keyword' });

const templateCard = page.getByRole('link', { name: '상세조회테스트' });

Expand Down

0 comments on commit 783023b

Please sign in to comment.