From 75b40f30bf0e72cf7674e507548849b29e20ccc1 Mon Sep 17 00:00:00 2001 From: hided62 Date: Sun, 26 Jul 2026 05:06:27 +0000 Subject: [PATCH] test: honor inheritance parity ports --- .../frontend-legacy-parity/inheritance-management.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/frontend-legacy-parity/inheritance-management.spec.ts b/tools/frontend-legacy-parity/inheritance-management.spec.ts index 6907362..a68beb8 100644 --- a/tools/frontend-legacy-parity/inheritance-management.spec.ts +++ b/tools/frontend-legacy-parity/inheritance-management.spec.ts @@ -6,6 +6,7 @@ import { fileURLToPath } from 'node:url'; const repositoryRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../..'); const imageRoot = resolve(repositoryRoot, '../../image'); const artifactRoot = process.env.FRONTEND_PARITY_ARTIFACT_DIR; +const gameUrl = `http://127.0.0.1:${process.env.FRONTEND_PARITY_GAME_PORT ?? '15102'}/che/inherit`; const response = (data: unknown) => ({ result: { data } }); @@ -153,7 +154,7 @@ test.describe('inheritance management legacy parity', () => { test('matches the ref 1000px grid and computed styles on desktop and mobile', async ({ page }) => { await installFixture(page); await page.setViewportSize({ width: 1280, height: 900 }); - await page.goto('http://127.0.0.1:15102/che/inherit'); + await page.goto(gameUrl); await expect(page.locator('#container')).toBeVisible(); await expect(page.locator('#specific-unique')).toHaveValue('che_무기_12_칠성검'); @@ -217,7 +218,7 @@ test.describe('inheritance management legacy parity', () => { test('submits a legacy buff purchase and refreshes status and logs', async ({ page }) => { const fixture = await installFixture(page); page.on('dialog', (dialog) => dialog.accept()); - await page.goto('http://127.0.0.1:15102/che/inherit'); + await page.goto(gameUrl); await page.locator('#buff-warAvoidRatio').fill('1'); await page.locator('#buff-warAvoidRatio').locator('xpath=../..').getByRole('button', { name: '구입' }).click(); await expect.poll(fixture.buffMutationCount).toBe(1); @@ -227,7 +228,7 @@ test.describe('inheritance management legacy parity', () => { test('keeps controls usable and renders an API mutation error', async ({ page }) => { await installFixture(page, { failBuff: true }); page.on('dialog', (dialog) => dialog.accept()); - await page.goto('http://127.0.0.1:15102/che/inherit'); + await page.goto(gameUrl); await page.locator('#buff-warAvoidRatio').fill('1'); await page.locator('#buff-warAvoidRatio').locator('xpath=../..').getByRole('button', { name: '구입' }).click(); await expect(page.locator('[role="alert"]')).toBeVisible();