Change order of place display options

This commit is contained in:
Przemek Więch
2026-06-24 23:18:04 +02:00
parent 1d80c07bf9
commit 9cb57d1f49
12 changed files with 42 additions and 14 deletions

View File

@@ -58,4 +58,29 @@ test.describe('Configurations Integration @visual', () => {
await page.waitForTimeout(300);
await expect(page).toHaveScreenshot('config-state-minimalist.png');
});
test('Places Configuration Options', async ({page}) => {
// Locate the section container inside form.details specifically to avoid Info tab ambiguity.
const placesSection = page
.locator('form.details .item')
.filter({hasText: 'Places'});
// 1. Toggle "hide" places.
await placesSection.getByText('hide').click();
await page.waitForTimeout(300);
await expect(page).toHaveScreenshot('config-state-places-hide.png');
// 2. Toggle "short" places (default count is 2).
await placesSection.getByText('short').click();
await page.waitForTimeout(300);
await expect(page).toHaveScreenshot(
'config-state-places-short-default.png',
);
// 3. Change short place count to 1.
const countInput = placesSection.locator('input[type="number"]');
await countInput.fill('1');
await page.waitForTimeout(300);
await expect(page).toHaveScreenshot('config-state-places-short-1.png');
});
});