test(e2e): add playwright harness and test stack

- test(e2e): add playwright harness and test stack
- test(e2e): add core flow
- fix(ui): preserve same-origin browser form submissions
- fix(ui): offer reload inside stale edit dialogs
- test(e2e): add persona session and accessibility suites
- test(e2e): preserve per-run artifacts and clean pulled images
- test(e2e): verify import and audit state across navigation
- test(e2e): tighten verification helpers and persona checks
- test(e2e): bound response body reads of the browser observer
- test: recover review compatibility assertions
- test: stabilize audit and user flow assertions
This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent a7ba01fc77
commit 57a005c19f
48 files changed
+6239 -6

No files matched your search

+9 -4
View File
@@ -247,10 +247,15 @@ export function handleError(err, options = {}) {
return;
}
if (err.status === 412) {
toast(err.message + " Reload to see the current data.", {
kind: "error",
action: { label: "Reload", run: options.reload || (() => location.reload()) },
});
const message = err.message + " Reload to see the current data.";
const reload = options.reload || (() => location.reload());
if (options.form) {
showFormError(options.form, message);
const button = h("button", { type: "button", class: "btn btn-small", text: "Reload", onclick: reload });
options.form.querySelector(".form-error").append(" ", button);
} else {
toast(message, { kind: "error", action: { label: "Reload", run: reload } });
}
return;
}
if (options.form) {
+1 -1
View File
@@ -259,7 +259,7 @@ function setupSoa() {
reportWarnings("SOA saved.", data);
await load();
} catch (err) {
handleError(err, { form, reload: load });
handleError(err, { form, reload: () => { dialog.close(); return load(); } });
}
});
});