도시 관직 요청 화면의 공통 글자 크기 통합 검증을 추가한다
This commit is contained in:
@@ -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": {
|
"possession": {
|
||||||
|
|||||||
@@ -101,6 +101,11 @@ for (const width of [500, 1000]) {
|
|||||||
await waitForFonts(page);
|
await waitForFonts(page);
|
||||||
await expect(page.locator('.nation-heading')).toHaveCSS('font-size', width === 500 ? '16px' : '24px');
|
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');
|
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) => ({
|
const geometry = await page.locator('#personnel-container').evaluate((element) => ({
|
||||||
width: element.getBoundingClientRect().width,
|
width: element.getBoundingClientRect().width,
|
||||||
scrollWidth: element.scrollWidth,
|
scrollWidth: element.scrollWidth,
|
||||||
@@ -284,9 +289,7 @@ for (const width of [500, 1000]) {
|
|||||||
await expect(page.locator('.create-form')).toBeVisible();
|
await expect(page.locator('.create-form')).toBeVisible();
|
||||||
await page.locator('.advanced-options > summary').click();
|
await page.locator('.advanced-options > summary').click();
|
||||||
await waitForFonts(page);
|
await waitForFonts(page);
|
||||||
const steps = await page
|
const steps = await page.locator('small').evaluateAll((elements) =>
|
||||||
.locator('small')
|
|
||||||
.evaluateAll((elements) =>
|
|
||||||
elements
|
elements
|
||||||
.filter((element) => element.checkVisibility())
|
.filter((element) => element.checkVisibility())
|
||||||
.map((element) => ({
|
.map((element) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user