Clean up
This commit is contained in:
parent
3930982bd8
commit
ad7968dadd
53 changed files with 564 additions and 1013 deletions
|
|
@ -1,5 +1,10 @@
|
|||
import { test } from '@playwright/test';
|
||||
|
||||
test.skip(
|
||||
process.env['CAPTURE_VISUALS'] !== '1',
|
||||
'Set CAPTURE_VISUALS=1 to run the visual screenshot capture suite.',
|
||||
);
|
||||
|
||||
/**
|
||||
* Visual capture: drives the UI into key states and writes screenshots
|
||||
* for human review of the legacy-styled design.
|
||||
|
|
@ -55,12 +60,12 @@ test.describe('Life Towers visuals', () => {
|
|||
.fill('Finish The Brothers Karamazov');
|
||||
// Uncheck "Already done" so this becomes a pending task.
|
||||
await createCard.getByLabel('Already done').uncheck();
|
||||
await page.getByRole('button', { name: 'Create and exit' }).click();
|
||||
await page.getByRole('button', { name: 'Create and exit', exact: true }).click();
|
||||
await page.waitForSelector('section.modal', { state: 'detached' });
|
||||
|
||||
// Open the tasks accordion to show the new tickbox.
|
||||
await page.waitForTimeout(200);
|
||||
await page.locator('lt-tasks .container').click();
|
||||
await page.locator('lt-tasks .header').click();
|
||||
await page.waitForTimeout(300);
|
||||
await page.screenshot({ path: 'visuals/04b-tasks-accordion-with-tickbox.png', fullPage: true });
|
||||
|
||||
|
|
@ -83,7 +88,7 @@ test.describe('Life Towers visuals', () => {
|
|||
await cc.locator('lt-select-add .top').click();
|
||||
await page.waitForTimeout(100);
|
||||
await cc.locator('textarea[placeholder="Write a description here…"]').fill(desc);
|
||||
await page.getByRole('button', { name: 'Create and exit' }).click();
|
||||
await page.getByRole('button', { name: 'Create and exit', exact: true }).click();
|
||||
await page.waitForSelector('section.modal', { state: 'detached' });
|
||||
}
|
||||
|
||||
|
|
@ -196,9 +201,9 @@ test.describe('Life Towers visuals', () => {
|
|||
await page.screenshot({ path: 'visuals/14-mobile-populated.png', fullPage: true });
|
||||
|
||||
// Open the block-edit carousel for the first tower's first task.
|
||||
await page.locator('lt-tasks .container').first().click();
|
||||
await page.locator('lt-tasks .header').first().click();
|
||||
await page.waitForTimeout(400);
|
||||
await page.locator('lt-tasks .task-container').first().click();
|
||||
await page.locator('lt-tasks .task-description').first().click();
|
||||
await page.waitForSelector('section.modal.active');
|
||||
await page.waitForTimeout(400);
|
||||
await page.screenshot({ path: 'visuals/15-mobile-carousel.png', fullPage: true });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue