Skip to content

Commit

Permalink
chore(todo): storybook ui 테스트 코드 타입 에러 관련 fixme 제거
Browse files Browse the repository at this point in the history
storybook 버전 업데이트에 따라 해결된 타입 에러 부분 fixme 제거

related to storybookjs/storybook#25258
  • Loading branch information
iamhoonse committed Jan 22, 2024
1 parent d02f04a commit 02c76e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stories/Page.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export const LoggedIn: Story = {
const canvas = within(canvasElement);
const loginButton = canvas.getByRole("button", { name: /Log in/i });
await expect(loginButton).toBeInTheDocument();
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await userEvent.click(loginButton); // fixme: pnpm 아니어도 위의 ESLint 규칙 억제가 필요 없도록 개선해야 함
await userEvent.click(loginButton);
await expect(loginButton).not.toBeInTheDocument();

const logoutButton = canvas.getByRole("button", { name: /Log out/i });
Expand Down

0 comments on commit 02c76e8

Please sign in to comment.