test: target the plane option specifically in relocation popup e2e
CI / build + unit + e2e (pull_request) Successful in 7m32s

This commit is contained in:
2026-09-19 16:35:19 +00:00
parent 8852ae11f2
commit 337eda2743
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -168,7 +168,9 @@ test('airport popup offers Relocate options for grounded planes', async ({ page
// The Relocate row: a select of grounded planes + the button (disabled until one is picked).
const planeSel = page.getByTestId('airport-popup-plane');
await expect(planeSel).toBeVisible();
await expect(planeSel.locator('option')).toContainText(/ATR 72-600 — EDDF/);
// Target THE PLANE OPTION specifically — locator('option') also matches the placeholder and
// trips strict mode (CI run #51).
await expect(planeSel.locator('option[value="plane-starter"]')).toHaveText(/ATR 72-600 — EDDF/);
const goBtn = page.getByTestId('airport-popup-relocate');
await expect(goBtn).toBeDisabled(); // placeholder selected