mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user