Skip to content

Commit 9ab6522

Browse files
Playwright - replace devextreme/core/guid import, add CI-matching Dockerfile
1 parent 0df1d9b commit 9ab6522

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu:24.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y --no-install-recommends \
6+
curl \
7+
ca-certificates \
8+
gnupg \
9+
git \
10+
p7zip-full \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
14+
&& apt-get install -y nodejs \
15+
&& npm install -g pnpm@9.15.9 \
16+
&& npx playwright install --with-deps chromium
17+
18+
WORKDIR /work

e2e/testcafe-devextreme/playwright-tests/editors/checkBox/common.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from '@playwright/test';
22
import { createWidget, testScreenshot, appendElementTo, setStyleAttribute, setClassAttribute, insertStylesheetRulesToPage } from '../../../playwright-helpers';
33
import path from 'path';
4-
import Guid from 'devextreme/core/guid';
4+
const Guid = () => ({ toString: () => Math.random().toString(36).slice(2, 10) });
55

66
const containerUrl = `file://${path.resolve(__dirname, '../../../tests/container.html')}`;
77

e2e/testcafe-devextreme/playwright-tests/editors/dateBox/label.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from '@playwright/test';
22
import { createWidget, testScreenshot, appendElementTo, setStyleAttribute, insertStylesheetRulesToPage, removeStylesheetRulesFromPage } from '../../../playwright-helpers';
33
import path from 'path';
4-
import Guid from 'devextreme/core/guid';
4+
const Guid = () => ({ toString: () => Math.random().toString(36).slice(2, 10) });
55

66
const containerUrl = `file://${path.resolve(__dirname, '../../../tests/container.html')}`;
77

0 commit comments

Comments
 (0)