From b060bc83bf63ebfec4396f5894cd6ecddf936a51 Mon Sep 17 00:00:00 2001 From: hided62 Date: Tue, 29 Sep 2026 09:52:11 +0000 Subject: [PATCH] =?UTF-8?q?=EB=8F=84=EC=8B=9C=20=EA=B4=80=EC=A7=81=20?= =?UTF-8?q?=EC=9A=94=EC=B2=AD=20=ED=99=94=EB=A9=B4=EC=9D=98=20=EA=B3=B5?= =?UTF-8?q?=ED=86=B5=20=EA=B8=80=EC=9E=90=20=ED=81=AC=EA=B8=B0=20=ED=86=B5?= =?UTF-8?q?=ED=95=A9=20=EA=B2=80=EC=A6=9D=EC=9D=84=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../e2e/fixtures/typography.json | 34 +++++++++++++++++++ .../e2e/typographyPolicy.spec.ts | 23 +++++++------ 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/app/game-frontend/e2e/fixtures/typography.json b/app/game-frontend/e2e/fixtures/typography.json index 3f9d3122..3f6bf9c6 100644 --- a/app/game-frontend/e2e/fixtures/typography.json +++ b/app/game-frontend/e2e/fixtures/typography.json @@ -2659,6 +2659,40 @@ } } } + }, + "nation.getCityOfficeRequests": { + "result": { + "data": { + "canManage": true, + "generalId": 1, + "nationId": 1, + "serverId": "typography-fixture", + "city": { + "id": 1, + "name": "허창" + }, + "options": [], + "requests": [ + { + "id": "typography-request", + "generalId": 3, + "generalName": "가나다라마바사아자", + "cityId": 1, + "cityName": "허창", + "officerLevel": 4, + "status": "pending", + "defaultDecision": "approve", + "defaultReason": "vacant", + "dueYear": 190, + "dueMonth": 2, + "remainingSeconds": 540, + "invalidReason": null + } + ], + "running": true, + "tickSeconds": 600 + } + } } }, "possession": { diff --git a/app/game-frontend/e2e/typographyPolicy.spec.ts b/app/game-frontend/e2e/typographyPolicy.spec.ts index 785ec288..82a03ecf 100644 --- a/app/game-frontend/e2e/typographyPolicy.spec.ts +++ b/app/game-frontend/e2e/typographyPolicy.spec.ts @@ -101,6 +101,11 @@ for (const width of [500, 1000]) { await waitForFonts(page); await expect(page.locator('.nation-heading')).toHaveCSS('font-size', width === 500 ? '16px' : '24px'); await expect(page.locator('.chief-entry-copy strong').first()).toHaveCSS('font-size', '16px'); + const requests = page.locator('#city-office-requests'); + await expect(requests.locator('.request-row')).toHaveCount(1); + await expect(requests.locator('.request-row small')).toHaveCSS('font-size', '12px'); + await expect(requests.locator('.request-actions button').first()).toHaveCSS('font-size', '14px'); + const geometry = await page.locator('#personnel-container').evaluate((element) => ({ width: element.getBoundingClientRect().width, scrollWidth: element.scrollWidth, @@ -284,16 +289,14 @@ for (const width of [500, 1000]) { await expect(page.locator('.create-form')).toBeVisible(); await page.locator('.advanced-options > summary').click(); await waitForFonts(page); - const steps = await page - .locator('small') - .evaluateAll((elements) => - elements - .filter((element) => element.checkVisibility()) - .map((element) => ({ - parent: getComputedStyle(element.parentElement!).fontSize, - size: getComputedStyle(element).fontSize, - })) - ); + const steps = await page.locator('small').evaluateAll((elements) => + elements + .filter((element) => element.checkVisibility()) + .map((element) => ({ + parent: getComputedStyle(element.parentElement!).fontSize, + size: getComputedStyle(element).fontSize, + })) + ); expect(steps.length).toBeGreaterThan(0); const next: Record = { '24px': '16px',