diff --git a/tests/steps/xdesign.spec.ts b/tests/steps/xdesign.spec.ts index 71b5da4..999fc40 100644 --- a/tests/steps/xdesign.spec.ts +++ b/tests/steps/xdesign.spec.ts @@ -17,6 +17,14 @@ test.describe('steps 组件xdesign规范', () => { await expect(demo).toHaveScreenshot('line-dot.png') }) + test('条形和高级向导型--UI截图', async ({ page }) => { + page.on('pageerror', (exception) => expect(exception).toBeNull()) + await page.goto('steps#advanced-steps') + const demo = page.locator('#advanced-steps .pc-demo-container') + await expect(demo).toBeInViewport() + await expect(demo).toHaveScreenshot('advanced.png') + }) + test('尺寸--UI截图', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('steps#size') diff --git a/tests/steps/xdesign.spec.ts-snapshots/advanced-chromium-win32.png b/tests/steps/xdesign.spec.ts-snapshots/advanced-chromium-win32.png new file mode 100644 index 0000000..67c939e Binary files /dev/null and b/tests/steps/xdesign.spec.ts-snapshots/advanced-chromium-win32.png differ diff --git a/tests/steps/xdesign.spec.ts-snapshots/line-dot-chromium-win32.png b/tests/steps/xdesign.spec.ts-snapshots/line-dot-chromium-win32.png index 9a947a7..532e6e9 100644 Binary files a/tests/steps/xdesign.spec.ts-snapshots/line-dot-chromium-win32.png and b/tests/steps/xdesign.spec.ts-snapshots/line-dot-chromium-win32.png differ diff --git a/tests/steps/xdesign.spec.ts-snapshots/line-horizontal-chromium-win32.png b/tests/steps/xdesign.spec.ts-snapshots/line-horizontal-chromium-win32.png index 37d5580..6316045 100644 Binary files a/tests/steps/xdesign.spec.ts-snapshots/line-horizontal-chromium-win32.png and b/tests/steps/xdesign.spec.ts-snapshots/line-horizontal-chromium-win32.png differ diff --git a/tests/steps/xdesign.spec.ts-snapshots/size-chromium-win32.png b/tests/steps/xdesign.spec.ts-snapshots/size-chromium-win32.png index 3f9f52f..b4dddf5 100644 Binary files a/tests/steps/xdesign.spec.ts-snapshots/size-chromium-win32.png and b/tests/steps/xdesign.spec.ts-snapshots/size-chromium-win32.png differ diff --git a/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-chromium-win32.png b/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-chromium-win32.png index dcf8888..9255d87 100644 Binary files a/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-chromium-win32.png and b/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-chromium-win32.png differ diff --git a/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-hover-chromium-win32.png b/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-hover-chromium-win32.png index d40377d..27d5a91 100644 Binary files a/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-hover-chromium-win32.png and b/tests/steps/xdesign.spec.ts-snapshots/slot-item-footer-hover-chromium-win32.png differ diff --git a/tests/time-line/xdesign.spec.ts b/tests/time-line/xdesign.spec.ts index 55f2c33..4796c4c 100644 --- a/tests/time-line/xdesign.spec.ts +++ b/tests/time-line/xdesign.spec.ts @@ -12,7 +12,7 @@ test.describe('timeline 组件xdesign规范', () => { test('圆点外观 --UI截图', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('time-line#shape') - const demo = page.locator('#shape .pc-demo') + const demo = page.locator('#shape .pc-demo .tiny-timeline') await expect(demo).toBeInViewport() await expect(demo).toHaveScreenshot('shape.png') }) diff --git a/tests/time-line/xdesign.spec.ts-snapshots/shape-chromium-win32.png b/tests/time-line/xdesign.spec.ts-snapshots/shape-chromium-win32.png index 197cbb6..c40c0be 100644 Binary files a/tests/time-line/xdesign.spec.ts-snapshots/shape-chromium-win32.png and b/tests/time-line/xdesign.spec.ts-snapshots/shape-chromium-win32.png differ diff --git a/tests/time-line/xdesign.spec.ts-snapshots/status-chromium-win32.png b/tests/time-line/xdesign.spec.ts-snapshots/status-chromium-win32.png index 9c25a47..72984ec 100644 Binary files a/tests/time-line/xdesign.spec.ts-snapshots/status-chromium-win32.png and b/tests/time-line/xdesign.spec.ts-snapshots/status-chromium-win32.png differ