feat: deploy cloud-only RMM and verify audited APT diagnostics
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from '../../web/node_modules/@playwright/test/index.js';
|
||||
import { resolve } from 'node:path';
|
||||
import { readdirSync, existsSync } from 'node:fs';
|
||||
|
||||
const root = resolve(__dirname, '../..');
|
||||
const browsers = resolve(root, 'web/node_modules/.cache/playwright-browsers');
|
||||
const version = readdirSync(browsers).find(x => /^chromium-/.test(x));
|
||||
if (!version) throw new Error('Installed Chromium required');
|
||||
const executablePath = ['chrome-linux/chrome', 'chrome-linux64/chrome']
|
||||
.map(x => resolve(browsers, version, x)).find(x => existsSync(x));
|
||||
if (!executablePath) throw new Error('Installed Chromium required');
|
||||
export default defineConfig({
|
||||
testDir: '../../tests/browser', testMatch: 'mvp-actions.spec.ts', workers: 1,
|
||||
fullyParallel: false, retries: 0, timeout: 120000,
|
||||
reporter: [['../../tests/browser/safe-reporter.ts']],
|
||||
outputDir: '../../web/node_modules/.cache/cloud-acceptance/results',
|
||||
use: { browserName: 'chromium', baseURL: 'https://localhost:18443',
|
||||
actionTimeout: 15000, navigationTimeout: 20000,
|
||||
ignoreHTTPSErrors: false, timezoneId: 'UTC', trace: 'off', screenshot: 'off', video: 'off',
|
||||
launchOptions: { executablePath, env: { ...process.env,
|
||||
HOME: resolve(root, 'web/node_modules/.cache/cloud-acceptance/home') } } },
|
||||
});
|
||||
Reference in New Issue
Block a user