Change order of place display options
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 53 KiB |
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 74 KiB |