style: restore mobile sign-in and compact access controls

This commit is contained in:
tdurieux
2026-09-10 16:07:02 +02:00
parent bcc7abc975
commit df81d7db56
7 changed files with 127 additions and 40 deletions
+9 -1
View File
@@ -121,9 +121,17 @@ describe("Vue 3 UI", function () {
});
for (const [appConnected, oauthConnected] of [[true, false], [false, true], [false, false], [true, true]]) {
it(`shows the access chooser only for two connections: ${appConnected}/${oauthConnected}`, async () => {
ui = await browser("/anonymize", { "/github/connections": { appEnabled: true, appConnected, oauthConnected } });
expect(Boolean(ui.window.document.querySelector(".repo-access"))).to.equal(appConnected && oauthConnected);
expect(ui.errors).to.deep.equal([]);
});
}
it("preserves redactions, identifiers and pinned commits when switching connections", async () => {
ui = await browser("/anonymize", {
"/github/connections": { appEnabled: true, oauthConnected: true },
"/github/connections": { appEnabled: true, appConnected: true, oauthConnected: true },
"/api/repo/owner/repo/": { defaultBranch: "main", repo: "repo" },
"/api/repo/owner/repo/branches": [{ name: "main", commit: "abcdef123" }],
"/api/repo/owner/repo/readme": "",