Skip to content

Commit 78fcb96

Browse files
committed
한글화
1 parent 7f9ac01 commit 78fcb96

File tree

122 files changed

+601
-574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+601
-574
lines changed

.github/workflows/test.ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
steps:
110110
- uses: actions/checkout@v3
111111
with:
112-
fetch-depth: 0 # この指定がないと比較に失敗する
112+
fetch-depth: 0 # 이 값을 지정하지 않으면 비교에 실패한다
113113
- uses: actions/setup-node@v3
114114
with:
115115
node-version: 18

e2e/Login.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ import { expect, test } from "@playwright/test";
22
import { checkA11y, injectAxe } from "axe-playwright";
33
import { login, logout, url } from "./util";
44

5-
test.describe("ログインページ", () => {
5+
test.describe("로그인 페이지", () => {
66
const path = "/login";
77

8-
test("ログイン時、ログアウトできる", async ({ page }) => {
8+
test("로그인 상태이면 로그아웃할 수 있다", async ({ page }) => {
99
await page.goto(url("/login"));
1010
await login({ page });
1111
await expect(page).toHaveURL(url("/"));
1212
await logout({ page });
1313
await expect(page).toHaveURL(url("/"));
14-
const buttonLogin = page.getByRole("link", { name: "ログイン" });
14+
const buttonLogin = page.getByRole("link", { name: "로그인" });
1515
await expect(buttonLogin).toBeVisible();
1616
});
1717

18-
test("ログイン後、リダイレクト元のページに戻る", async ({ page }) => {
18+
test("로그인 성공시 이전 페이지로 돌아간다", async ({ page }) => {
1919
await page.goto(url("/my/posts"));
2020
await expect(page).toHaveURL(url(path));
2121
await login({ page });
2222
await expect(page).toHaveURL(url("/my/posts"));
2323
});
2424

25-
test("アクセシビリティ検証", async ({ page }) => {
25+
test("접근성 검증", async ({ page }) => {
2626
await page.goto(url(path));
2727
await injectAxe(page as any);
2828
await checkA11y(page as any);

e2e/MyPost.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { test } from "@playwright/test";
22
import { checkA11y, injectAxe } from "axe-playwright";
33
import { assertUnauthorizedRedirect, url } from "./util";
44

5-
test.describe("投稿済み記事ページ", () => {
5+
test.describe("게재된 기사 페이지", () => {
66
const path = "/my/posts/1";
77

8-
test("未ログイン時、ログイン画面にリダイレクトされる", async ({ page }) => {
8+
test("로그인 상태가 아니면 로그인 화면으로 리다이렉트된다", async ({ page }) => {
99
await assertUnauthorizedRedirect({ page, path });
1010
});
1111

12-
test("アクセシビリティ検証", async ({ page }) => {
12+
test("접근성 검증", async ({ page }) => {
1313
await page.goto(url(path));
1414
await injectAxe(page as any);
1515
await checkA11y(page as any);

e2e/MyPostEdit.spec.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,57 @@ import {
88
} from "./postUtil";
99
import { assertUnauthorizedRedirect, url } from "./util";
1010

11-
test.describe("記事編集ページ", () => {
11+
test.describe("기사편집 페이지", () => {
1212
const path = "/my/posts/1/edit";
13-
const userName: UserName = "TaroYamada";
13+
const userName: UserName = "Bae Eonsu";
1414

15-
test("未ログイン時、ログイン画面にリダイレクトされる", async ({ page }) => {
15+
test("로그인 상태가 아니면 로그인 화면으로 리다이렉트된다", async ({ page }) => {
1616
await assertUnauthorizedRedirect({ page, path });
1717
});
1818

19-
test("下書き記事を編集できる", async ({ page }) => {
20-
const title = "下書き編集テスト";
21-
const newTitle = "下書き編集テスト更新済み";
19+
test("비공개 기사를 편집할 수 있다", async ({ page }) => {
20+
const title = "비공개 편집 테스트";
21+
const newTitle = "비공개 편집 테스트 갱신 완료";
2222
await gotoAndCreatePostAsDraft({ page, title, userName });
2323
await gotoEditPostPage({ page, title });
24-
await page.getByRole("textbox", { name: "記事タイトル" }).fill(newTitle);
25-
await page.getByRole("button", { name: "下書き保存する" }).click();
24+
await page.getByRole("textbox", { name: "제목" }).fill(newTitle);
25+
await page.getByRole("button", { name: "비공개 상태로 저장" }).click();
2626
await page.waitForNavigation();
2727
await expect(page).toHaveTitle(newTitle);
2828
});
2929

30-
test("下書き記事を公開できる", async ({ page }) => {
31-
const title = "下書き公開テスト";
30+
test("비공개 기사를 공개할 수 있다", async ({ page }) => {
31+
const title = "비공개 기사 공개 테스트";
3232
await gotoAndCreatePostAsDraft({ page, title, userName });
3333
await gotoEditPostPage({ page, title });
34-
await page.getByText("公開ステータス").click();
35-
await page.getByRole("button", { name: "記事を公開する" }).click();
36-
await page.getByRole("button", { name: "はい" }).click();
34+
await page.getByText("공개여부").click();
35+
await page.getByRole("button", { name: "공개" }).click();
36+
await page.getByRole("button", { name: "" }).click();
3737
await page.waitForNavigation();
3838
await expect(page).toHaveTitle(title);
3939
});
4040

41-
test("公開記事を非公開にできる", async ({ page }) => {
42-
const title = "記事非公開テスト";
41+
test("공개된 기사를 비공개할 수 있다", async ({ page }) => {
42+
const title = "기사 비공개 테스트";
4343
await gotoAndCreatePostAsPublish({ page, title, userName });
4444
await gotoEditPostPage({ page, title });
45-
await page.getByText("公開ステータス").click();
46-
await page.getByRole("button", { name: "下書き保存する" }).click();
45+
await page.getByText("공개여부").click();
46+
await page.getByRole("button", { name: "비공개 상태로 저장" }).click();
4747
await page.waitForNavigation();
4848
await expect(page).toHaveTitle(title);
4949
});
5050

51-
test("公開記事を削除できる", async ({ page }) => {
52-
const title = "記事削除テスト";
51+
test("공개된 기사를 삭제할 수 있다", async ({ page }) => {
52+
const title = "기사 삭제 테스트";
5353
await gotoAndCreatePostAsPublish({ page, title, userName });
5454
await gotoEditPostPage({ page, title });
55-
await page.getByRole("button", { name: "記事を削除する" }).click();
56-
await page.getByRole("button", { name: "はい" }).click();
55+
await page.getByRole("button", { name: "삭제" }).click();
56+
await page.getByRole("button", { name: "" }).click();
5757
await page.waitForNavigation();
58-
await expect(page).toHaveTitle(`${userName}さんの投稿記事一覧`);
58+
await expect(page).toHaveTitle(`${userName}님의 기사 목록`);
5959
});
6060

61-
test("アクセシビリティ検証", async ({ page }) => {
61+
test("접근성 검증", async ({ page }) => {
6262
await page.goto(url(path));
6363
await injectAxe(page as any);
6464
await checkA11y(page as any);

e2e/MyPosts.spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,41 @@ import {
77
} from "./postUtil";
88
import { assertUnauthorizedRedirect, login, url } from "./util";
99

10-
test.describe("投稿記事一覧ページ", () => {
10+
test.describe("게재된 기사 목록 페이지", () => {
1111
const path = "/my/posts";
12-
const userName: UserName = "TaroYamada";
12+
const userName: UserName = "Bae Eonsu";
1313

14-
test("未ログイン時、ログイン画面にリダイレクトされる", async ({ page }) => {
14+
test("로그인 상태가 아니면 로그인 화면으로 리다이렉트된다", async ({ page }) => {
1515
await assertUnauthorizedRedirect({ page, path });
1616
});
1717

18-
test("自分のプロフィールが閲覧できる", async ({ page }) => {
18+
test("자신의 프로필을 열람할 수 있다", async ({ page }) => {
1919
await page.goto(url(path));
2020
await login({ page });
2121
await expect(page).toHaveURL(url(path));
22-
const profile = page.getByRole("region", { name: "プロフィール" });
23-
await expect(profile).toContainText("TaroYamada");
22+
const profile = page.getByRole("region", { name: "프로필" });
23+
await expect(profile).toContainText("Bae Eonsu");
2424
});
2525

26-
test("新規記事を下書き保存すると、投稿記事一覧に記事が追加される", async ({
26+
test("신규기사를 비공개 상태로 저장하면 게재된 기사 목록에 기사가 추가된다", async ({
2727
page,
2828
}) => {
29-
const title = "下書き投稿一覧表示テスト";
29+
const title = "비공개 상태로 저장된 기사 목록 테스트";
3030
await gotoAndCreatePostAsDraft({ page, title, userName });
3131
await page.goto(url(path));
3232
await expect(page.getByText(title)).toBeVisible();
3333
});
3434

35-
test("新規記事を公開保存すると、投稿記事一覧に記事が追加される", async ({
35+
test("신규기사를 공개 상태로 저장하면 게재된 기사 목록에 기사가 추가된다", async ({
3636
page,
3737
}) => {
38-
const title = "公開投稿一覧表示テスト";
38+
const title = "공개 상태로 저장된 기사 목록 테스트";
3939
await gotoAndCreatePostAsPublish({ page, title, userName });
4040
await page.goto(url(path));
4141
await expect(page.getByText(title)).toBeVisible();
4242
});
4343

44-
test("アクセシビリティ検証", async ({ page }) => {
44+
test("접근성 검증", async ({ page }) => {
4545
await page.goto(url(path));
4646
await injectAxe(page as any);
4747
await checkA11y(page as any);

e2e/MyPostsCreate.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ import {
77
} from "./postUtil";
88
import { assertUnauthorizedRedirect, url } from "./util";
99

10-
test.describe("新規投稿ページ", () => {
10+
test.describe("신규기사 페이지", () => {
1111
const path = "/my/posts/create";
12-
const userName: UserName = "TaroYamada";
12+
const userName: UserName = "Bae Eonsu";
1313

14-
test("未ログイン時、ログイン画面にリダイレクトされる", async ({ page }) => {
14+
test("로그인 상태가 아니면 로그인 화면으로 리다이렉트된다", async ({ page }) => {
1515
await assertUnauthorizedRedirect({ page, path });
1616
});
1717

18-
test("新規記事を下書き保存できる", async ({ page }) => {
19-
const title = "下書き投稿テスト";
18+
test("신규기사를 비공개 상태로 저장할 수 있다", async ({ page }) => {
19+
const title = "비공개 상태로 저장하기 테스트";
2020
await gotoAndCreatePostAsDraft({ page, title, userName });
2121
});
2222

23-
test("新規記事を公開できる", async ({ page }) => {
24-
const title = "公開投稿テスト";
23+
test("신규기사를 공개할 수 있다", async ({ page }) => {
24+
const title = "공개하기 테스트";
2525
await gotoAndCreatePostAsPublish({ page, title, userName });
2626
});
2727

28-
test("アクセシビリティ検証", async ({ page }) => {
28+
test("접근성 검증", async ({ page }) => {
2929
await page.goto(url(path));
3030
await injectAxe(page as any);
3131
await checkA11y(page as any);

e2e/MyProfileEdit.spec.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@ import { checkA11y, injectAxe } from "axe-playwright";
33
import { UserName } from "../prisma/fixtures/user";
44
import { assertUnauthorizedRedirect, login, url } from "./util";
55

6-
test.describe("プロフィール編集ページ", () => {
6+
test.describe("프로필 편집 페이지", () => {
77
const path = "/my/profile/edit";
88
const userName: UserName = "User-MyProfileEdit";
99
const newName = "NewName";
1010

11-
test("未ログイン時、ログイン画面にリダイレクトされる", async ({ page }) => {
11+
test("로그인 상태가 아니면 로그인 화면으로 리다이렉트된다", async ({ page }) => {
1212
await assertUnauthorizedRedirect({ page, path });
1313
});
1414

15-
test("プロフィール名称を編集すると、プロフィールに反映される", async ({
15+
test("프로필을 편집하면 프로필에 반영된다", async ({
1616
page,
1717
}) => {
1818
await page.goto(url(path));
1919
await login({ page, userName });
20-
// ここからプロフィール編集画面
20+
// 여기서부터 프로필 편집화면
2121
await expect(page).toHaveURL(url(path));
22-
await expect(page).toHaveTitle(`${userName}さんのプロフィール編集`);
23-
await page.getByRole("textbox", { name: "ユーザー名" }).fill(newName);
24-
await page.getByRole("button", { name: "プロフィールを変更する" }).click();
22+
await expect(page).toHaveTitle(`${userName}님의 프로필 편집`);
23+
await page.getByRole("textbox", { name: "사용자명" }).fill(newName);
24+
await page.getByRole("button", { name: "프로필 변경하기" }).click();
2525
await page.waitForURL(url("/my/posts"));
26-
// ページのタイトルに、入力したばかりの新しい名前が含まれている
27-
await expect(page).toHaveTitle(`${newName}さんの投稿記事一覧`);
26+
// 페이지 제목에 방금 입력한 이름이 포함되어 있다
27+
await expect(page).toHaveTitle(`${newName}님의 기사 목록`);
2828
await expect(
29-
page.getByRole("region", { name: "プロフィール" })
29+
page.getByRole("region", { name: "프로필" })
3030
).toContainText(newName);
31-
await expect(page.locator("[aria-label='ログインユーザー']")).toContainText(
31+
await expect(page.locator("[aria-label='로그인한 사용자']")).toContainText(
3232
newName
3333
);
3434
});
3535

36-
test("アクセシビリティ検証", async ({ page }) => {
36+
test("접근성 검증", async ({ page }) => {
3737
await page.goto(url(path));
3838
await injectAxe(page as any);
3939
await checkA11y(page as any);

e2e/Post.spec.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@ import { expect, test } from "@playwright/test";
22
import { checkA11y, injectAxe } from "axe-playwright";
33
import { login, url } from "./util";
44

5-
test.describe("投稿ページ", () => {
5+
test.describe("글쓰기 페이지", () => {
66
const path = "/posts/1";
77

8-
test("未ログイン時、ログインボタンが表示されている", async ({ page }) => {
8+
test("로그인 상태가 아니면 로그인 버튼이 표시된다", async ({ page }) => {
99
await page.goto(url(path));
10-
const buttonLogin = page.getByRole("link", { name: "ログイン" });
10+
const buttonLogin = page.getByRole("link", { name: "로그인" });
1111
await expect(buttonLogin).toBeVisible();
1212
});
1313

14-
test("他人の記事に Like できる", async ({ page }) => {
14+
test("다른 사람의 기사를 Like할 수 있다", async ({ page }) => {
1515
await page.goto(url("/login"));
16-
await login({ page, userName: "TaroYamada" });
16+
await login({ page, userName: "Bae Eonsu" });
1717
await expect(page).toHaveURL(url("/"));
18-
// ここから ID:10 の記事ページ
18+
// 여기서부터 ID가 10인 기사의 페이지
1919
await page.goto(url("/posts/10"));
2020
const buttonLike = page.getByRole("button", { name: "Like" });
2121
const buttonText = page.getByTestId("likeStatus");
22-
// Like ボタンが有効になっていて、Like は 0件である
22+
// Like 버튼이 활성화되고, Like는 0이다
2323
await expect(buttonLike).toBeEnabled();
2424
await expect(buttonLike).toHaveText("0");
2525
await expect(buttonText).toHaveText("Like");
2626
await buttonLike.click();
27-
// Like を付けたら  1件カウントアップされ Like済み状態になる
27+
// Like를 클릭하면 카운트가 1 증가하고 이미 Like한 상태가 된다
2828
await expect(buttonLike).toHaveText("1");
2929
await expect(buttonText).toHaveText("Liked");
3030
});
3131

32-
test("自分の記事に Like できない", async ({ page }) => {
32+
test("자신의 기사에 Like할 수 있다", async ({ page }) => {
3333
await page.goto(url("/login"));
34-
await login({ page, userName: "TaroYamada" });
34+
await login({ page, userName: "Bae Eonsu" });
3535
await expect(page).toHaveURL(url("/"));
36-
// ここから ID:90 の記事ページ
36+
// 여기서부터 ID가 90인 기사의 페이지
3737
await page.goto(url("/posts/90"));
3838
const buttonLike = page.getByRole("button", { name: "Like" });
3939
const buttonText = page.getByTestId("likeStatus");
40-
// Like ボタンは非活性になっていて、Like の文字もない
40+
// Like 버튼이 비활성화되고 Like라는 문자도 사라진다
4141
await expect(buttonLike).toBeDisabled();
4242
await expect(buttonText).not.toHaveText("Like");
4343
});
4444

45-
test("アクセシビリティ検証", async ({ page }) => {
45+
test("접근성 검증", async ({ page }) => {
4646
await page.goto(url(path));
4747
await injectAxe(page as any);
4848
await checkA11y(page as any);

0 commit comments

Comments
 (0)