Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheiy committed Mar 18, 2024
1 parent 27bfa1c commit 1bbbdf6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
4 changes: 2 additions & 2 deletions uui-e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"test-e2e-deps-install": "yarn pw install --with-deps chromium webkit",
"test-e2e-report-show": "yarn pw show-report uui-e2e-tests/tests/.report/report",
"test-e2e-report-merge": "yarn pw merge-reports --reporter html",
"docker-test-e2e": "cross-env DOCKERFILE=Dockerfile-test podman compose up",
"docker-test-e2e-update": "cross-env DOCKERFILE=Dockerfile-test-update podman compose up"
"docker-test-e2e": "cross-env DOCKERFILE=Dockerfile-test podman compose up --build",
"docker-test-e2e-update": "cross-env DOCKERFILE=Dockerfile-test-update podman compose up --build"
},
"dependencies": {
"@playwright/test": "1.42.1",
Expand Down
2 changes: 1 addition & 1 deletion uui-e2e-tests/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ export const SHARED_DEVICE_CFG: Record<string, Partial<PlaywrightTestOptions>> =
DEFAULT: {
locale: 'en-US',
timezoneId: 'EET',
viewport: VIEWPORTS.Width_700,
viewport: VIEWPORTS.Width_500,
},
};
2 changes: 1 addition & 1 deletion uui-e2e-tests/src/utils/testBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function createSingleScreenshotTest(
const testName = createUniqueTestName(params);

test.describe(() => {
test.use({ viewport: builderParams.viewport });
// test.use({ viewport: builderParams.viewport });
test(testName, async ({ previewPage }) => {
await previewPage.editPreview(pageParams);
const opts = await previewPage.getScreenshotOptions();
Expand Down
23 changes: 4 additions & 19 deletions uui-e2e-tests/tests/visualRegression.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,19 @@
import { createScreenshotTestsAll, ScreenshotTestParamsMulti, TTheme, VIEWPORTS } from '../src';

const allTests: ScreenshotTestParamsMulti = {
/* badge: {
viewport: VIEWPORTS.Width_250,
matrix: {
isSkin: [true, false],
theme: [TTheme.promo],
previewId: ['0'],
},
}, */
accordion: {
viewport: VIEWPORTS.Width_500,
matrix: {
isSkin: [true],
isSkin: [true, false],
theme: [TTheme.promo, TTheme.loveship_dark],
previewId: ['expanded'],
previewId: ['expanded', 'collapsed'],
},
// onBeforeAssertion: async ({ pageParams, previewPage }) => {},
},
/* avatar: {
viewport: VIEWPORTS.Width_250,
matrix: {
isSkin: [true],
theme: [TTheme.promo],
previewId: ['0'],
},
}, */
};

for (let i = 0; i < 50; i++) {
const suiteId = String(i + 1);
createScreenshotTestsAll(allTests, suiteId);
}

// onBeforeAssertion: async ({ pageParams, previewPage }) => {},

0 comments on commit 1bbbdf6

Please sign in to comment.