test(settings): follow the redesigned settings and admin pages

The tests now look for what the pages show after the redesign: the admin
Settings tab is Security and Services, MCP Access and User Defaults are MCP
and Defaults, notification channels and the 2FA rule are rows with a named
switch, hints sit behind the info mark, each addon type card counts its own
addons, OAuth scopes and the AI sharing note are shown in full, and the 2FA
disable password is the field beside the code. The phone's MCP admin header
keeps its own title, MCP Access. The mail pill test renders with
translations, so it finds From mail rather than the key.
This commit is contained in:
Maurice
2026-11-13 23:10:05 +00:00
parent a0764b9c96
commit 01653f81e3
10 changed files with 108 additions and 93 deletions
@@ -426,9 +426,10 @@ describe('AddonManager', () => {
expect(paperlessRow.querySelector('svg')).toBeInTheDocument();
expect(isOn(subToggle('Paperless-ngx'))).toBe(true);
expect(isOn(subToggle('Nextcloud'))).toBe(false);
// Documents and Journey are the addons; an enabled provider is a shelf row
// and must not turn 1/2 into 2/2.
expect(screen.getByText('1/2')).toBeInTheDocument();
// Documents and Journey are the addons, one per type card; an enabled
// provider is a shelf row and must not turn the trip card's 1/1 into 2/2.
expect(screen.getByText('1/1')).toBeInTheDocument();
expect(screen.getByText('0/1')).toBeInTheDocument();
});
it('FE-ADMIN-ADDON-034: document providers stay hidden while Documents itself is off', async () => {