1 parent
5b56b4a4cc
commit
7fdf4803ed
21 files changed
+49
-35
No files matched your search
+2
-2
@@ -1,13 +1,13 @@
|
||||
const {openSetup}=require('./support/browser.cjs');
|
||||
// Run against an explicitly seeded localhost development instance.
|
||||
const { chromium } = require('playwright');
|
||||
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const base = process.env.MEGURI_BROWSER_URL || 'http://127.0.0.1:3000';
|
||||
assert(['127.0.0.1','localhost'].includes(new URL(base).hostname), 'Browser tests require a disposable local instance');
|
||||
fs.mkdirSync('test-results', { recursive: true });
|
||||
(async () => {
|
||||
const browser = await chromium.launch({ ...(process.env.MEGURI_BROWSER_CHANNEL==='chromium'?{}:{channel:process.env.MEGURI_BROWSER_CHANNEL || 'chrome'}), headless: true });
|
||||
const browser = await require('./support/browser.cjs').launchBrowser();
|
||||
const errors = [];
|
||||
async function signIn(name) {
|
||||
const context = await browser.newContext({ viewport: { width: 1440, height: 1100 } });
|
||||
|
||||
Reference in new issue
Block a user