steadier tests
Massimo Melina committed
May 21, 2025 at 09:53 UTC
458e41a69d25622b58e75c3dcceec75877358d99
3 files changed
+4
-4
e2e/frontend.spec.ts
+1
-1
@@ -256,7 +256,7 @@ test('admin1', async ({ page }) => {
256
await dataTableLoading()
257
if (!isPhone)
258
await expect(page.getByText('author', { exact: true })).toBeVisible(); // wait for layout to be stable
259
- await screenshot(page);
259
+ await screenshot(page, '.MuiDataGrid-root');
260
await clickMenu('Plugins');
261
await expect(page.getByText('antibrute')).toBeVisible(); // wait for data
262
await screenshot(page);
package.json
+1
-1
@@ -19,7 +19,7 @@
19
"server-for-test": "node dist/src --cwd tests/work --config tests --debug",
20
"server-for-test-dev": "cross-env DEV=1 FRONTEND_PROXY=3005 ADMIN_PROXY=3006 nodemon --ignore tests/ --watch src -e ts,tsx --exec tsx src -- --cwd tests/work --config tests",
21
"test": "node --import tsx --test tests/test.ts",
22
- "test-with-server": "node dist/src --cwd tests/work --config tests & pid=$! && sleep 2 && node --import tsx --test tests/test.ts; _exit=$?; kill $pid; exit $_exit",
22
+ "test-with-server": "rm -rf tests/work && node dist/src --cwd tests/work --config tests & pid=$! && sleep 2 && node --import tsx --test tests/test.ts; _exit=$?; kill $pid; exit $_exit",
23
"test-ui": "npx playwright test --ui",
24
"pub": "cd dist && npm publish",
25
"dist": "npm run build-all && npx playwright test && npm run dist-bin",
playwright.config.ts
+2
-2
@@ -38,8 +38,8 @@ export default defineConfig({
38
use: { ...devices['Pixel 7'] },
39
},
40
{
41
- name: 'iPhone SE',
42
- use: { ...devices['iPhone SE'] },
41
+ name: 'iPhone 6',
42
+ use: { ...devices['iPhone 6'] },
43
},
44
/*
45
{