diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 02000db..120b9fe 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -40,22 +40,8 @@ jobs: echo "Missing TAXBAIK_JWT_SECRET_KEY secret" >&2 exit 1 fi - JWT_SECRET_KEY="$JWT_SECRET_KEY" python3 - <<'PY' - import json - import os - from pathlib import Path - - config = { - "Jwt": { - "SecretKey": os.environ["JWT_SECRET_KEY"] - } - } - - Path("./publish/appsettings.Production.json").write_text( - json.dumps(config, ensure_ascii=False, indent=2), - encoding="utf-8", - ) - PY + JWT_SECRET_KEY="$JWT_SECRET_KEY" python3 -c 'import json, os, pathlib; pathlib.Path("./publish/appsettings.Production.json").write_text(json.dumps({"Jwt":{"SecretKey":os.environ["JWT_SECRET_KEY"]}}, ensure_ascii=False, indent=2), encoding="utf-8")' + test -s ./publish/appsettings.Production.json - name: Copy migrations to publish run: | diff --git a/TaxBaik.Web/Components/Admin/InquiryTable.razor b/TaxBaik.Web/Components/Admin/InquiryTable.razor index fcc1cae..7ef52bb 100644 --- a/TaxBaik.Web/Components/Admin/InquiryTable.razor +++ b/TaxBaik.Web/Components/Admin/InquiryTable.razor @@ -28,8 +28,8 @@
@post.CreatedAt.ToString("yyyy-MM-dd")
- 읽기 + 글 내용 보기 diff --git a/TaxBaik.Web/Pages/Blog/Post.cshtml b/TaxBaik.Web/Pages/Blog/Post.cshtml index cb3a71c..c27ea5a 100644 --- a/TaxBaik.Web/Pages/Blog/Post.cshtml +++ b/TaxBaik.Web/Pages/Blog/Post.cshtml @@ -20,6 +20,10 @@ +@post.CreatedAt.ToString("yyyy년 MM월 dd일")
- 읽기 + 글 내용 보기 diff --git a/tests/e2e/blog-seo.spec.ts b/tests/e2e/blog-seo.spec.ts index 1a90c54..6c68530 100644 --- a/tests/e2e/blog-seo.spec.ts +++ b/tests/e2e/blog-seo.spec.ts @@ -5,7 +5,7 @@ const baseUrl = (process.env.E2E_BASE_URL ?? 'http://178.104.200.7/taxbaik').rep test.describe('blog seo', () => { test('exposes title description and canonical on blog detail pages', async ({ page }) => { await page.goto(`${baseUrl}/blog`); - const firstPost = page.locator('a[href^="/taxbaik/blog/"]').filter({ hasText: '읽기' }).first(); + const firstPost = page.locator('a[href^="/taxbaik/blog/"]').filter({ hasText: '글 내용 보기' }).first(); await expect(firstPost).toBeVisible(); const detailHref = await firstPost.getAttribute('href'); expect(detailHref).toMatch(/^\/taxbaik\/blog\/[a-z0-9-]+$/); diff --git a/tests/e2e/inquiry-detail.spec.ts b/tests/e2e/inquiry-detail.spec.ts index c257ae5..3aac1c8 100644 --- a/tests/e2e/inquiry-detail.spec.ts +++ b/tests/e2e/inquiry-detail.spec.ts @@ -41,6 +41,7 @@ test.describe('inquiry detail', () => { await expect(page.getByRole('button', { name: '신규' })).toBeVisible(); await expect(page.getByRole('button', { name: '연락함' })).toBeVisible(); await expect(page.getByRole('button', { name: '완료' })).toBeVisible(); - await expect(page.getByRole('button', { name: '문의 목록 열기' })).toBeVisible(); + await expect(page.getByRole('button', { name: '문의 목록으로 돌아가기' })).toBeVisible(); + await expect(page.getByRole('link', { name: '다른 문의도 보기' })).toBeVisible(); }); });