AI made playwright tests + add them to the github.

This commit is contained in:
KingKDot
2026-07-15 12:12:13 -05:00
parent 22b0eed5e1
commit 8ad81efdc3
16 changed files with 554 additions and 9 deletions
+6 -2
View File
@@ -190,16 +190,20 @@ if (host) {
}
applyAdaptiveNavLayout();
return user;
} catch (err) {
console.error("Failed to load user:", err);
return null;
}
}
let currentUserPromise = Promise.resolve(null);
if (refs.usernameDisplay && refs.roleBadge) {
loadCurrentUser();
currentUserPromise = loadCurrentUser();
}
import("./chat-widget.js").then((chatWidget) => {
Promise.all([currentUserPromise, import("./chat-widget.js")]).then(([user, chatWidget]) => {
if (!user?.permissions?.includes("chat:write")) return;
runWithoutPageTracking(() => {
chatWidget.init();