Skip to content

Commit

Permalink
Fix: フォントを固定
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Feb 20, 2024
1 parent 428c45a commit 6a30e12
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/check-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
with:
version: 8.10.2
- name: Install dependencies
run: pnpm i --frozen-lockfile
run: |
pnpm i --frozen-lockfile
sudo apt-get install fonts-noto-cjk
- name: Run tests
run: |
pnpm run lint:check
Expand Down
10 changes: 10 additions & 0 deletions tests/vrt.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import { test, expect } from "@playwright/test";

test.beforeEach(async ({ page }) => {
await page.addStyleTag({
content: `
body {
font-family: 'Noto Sans CJK JP'
}
`,
});
});

test("Visual Regression Test", async ({ page }) => {
await page.goto(".");

Expand Down
Binary file modified tests/vrt.spec.ts-snapshots/home-page-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a30e12

Please sign in to comment.