SPB Git

e2e: PWFILE

spb committed (Nov 1, 2026) parent 65272fd Browse files

17 changed files +2 −2

modified e2e-shots/01-home.png +0 −0

Binary file not shown.

modified e2e-shots/02-model-picker.png +0 −0

Binary file not shown.

modified e2e-shots/03-answer.png +0 −0

Binary file not shown.

modified e2e-shots/04-palette.png +0 −0

Binary file not shown.

modified e2e-shots/05-mobile-home.png +0 −0

Binary file not shown.

modified e2e-shots/06-mobile-drawer.png +0 −0

Binary file not shown.

modified e2e-shots/07-mobile-conv.png +0 −0

Binary file not shown.

deleted e2e-shots/page-compare.png +0 −0

Binary file not shown.

deleted e2e-shots/page-images.png +0 −0

Binary file not shown.

deleted e2e-shots/page-memory.png +0 −0

Binary file not shown.

deleted e2e-shots/page-models.png +0 −0

Binary file not shown.

deleted e2e-shots/page-projects-new.png +0 −0

Binary file not shown.

deleted e2e-shots/page-research.png +0 −0

Binary file not shown.

deleted e2e-shots/page-settings.png +0 −0

Binary file not shown.

deleted e2e-shots/page-usage.png +0 −0

Binary file not shown.

modified scripts/e2e/pages.mjs +1 −1
@@ -1,6 +1,6 @@
1 import { chromium } from "playwright"; import fs from "node:fs"; 1 import { chromium } from "playwright"; import fs from "node:fs";
2 const BASE = process.env.BASE ?? "http://localhost:8500"; 2 const BASE = process.env.BASE ?? "http://localhost:8500";
3−const PW = fs.readFileSync(process.env.HOME + "/Desktop/Cluster/secrets/chat-spboucher-ai.devpassword", "utf8").trim(); 3+const PW = fs.readFileSync(process.env.PWFILE ?? (process.env.HOME + "/Desktop/Cluster/secrets/chat-spboucher-ai.devpassword"), "utf8").trim();
4 const browser = await chromium.launch(); const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } }); const page = await ctx.newPage(); 4 const browser = await chromium.launch(); const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } }); const page = await ctx.newPage();
5 const errors = []; page.on("pageerror", e => errors.push(e.message)); page.on("console", m => { if (m.type() === "error") errors.push(m.text().slice(0, 200)); }); 5 const errors = []; page.on("pageerror", e => errors.push(e.message)); page.on("console", m => { if (m.type() === "error") errors.push(m.text().slice(0, 200)); });
6 await page.goto(BASE + "/login"); await page.fill('input[autocomplete="username"]', "simon"); await page.fill('input[type="password"]', PW); await page.click('button[type="submit"]'); await page.waitForURL(BASE + "/"); 6 await page.goto(BASE + "/login"); await page.fill('input[autocomplete="username"]', "simon"); await page.fill('input[type="password"]', PW); await page.click('button[type="submit"]'); await page.waitForURL(BASE + "/");
modified scripts/e2e/smoke.mjs +1 −1
@@ -1,7 +1,7 @@
1 import { chromium, devices } from "playwright"; 1 import { chromium, devices } from "playwright";
2 import fs from "node:fs"; 2 import fs from "node:fs";
3 const BASE = process.env.BASE ?? "http://localhost:8500"; 3 const BASE = process.env.BASE ?? "http://localhost:8500";
4−const PW = fs.readFileSync(process.env.HOME + "/Desktop/Cluster/secrets/chat-spboucher-ai.devpassword", "utf8").trim(); 4+const PW = fs.readFileSync(process.env.PWFILE ?? (process.env.HOME + "/Desktop/Cluster/secrets/chat-spboucher-ai.devpassword"), "utf8").trim();
5 fs.mkdirSync("e2e-shots", { recursive: true }); 5 fs.mkdirSync("e2e-shots", { recursive: true });
6 const browser = await chromium.launch(); 6 const browser = await chromium.launch();
7 async function login(page) { 7 async function login(page) {
8 8
Menu

Theme