mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00

* fix: correct 'StatusChecker' typo * feat: add restart required check to StatusChecker * fix(perms): remove MANAGE_SETTINGS permission * fix: allow alert to be dismissed * fix(lang): add missing string in SettingsServices * fix(frontend): fix modal icon border * fix(frontend): un-dismiss alert if setting reverted not require server restart * fix(backend): restart flag only needs to track main settings * fix: rebase issue * refactor: appease Prettier * refactor: swap settings badge order * fix: type import for MainSettings * test: add cypress test for restart prompt
33 lines
922 B
TypeScript
33 lines
922 B
TypeScript
describe('General Settings', () => {
|
|
beforeEach(() => {
|
|
cy.login(Cypress.env('ADMIN_EMAIL'), Cypress.env('ADMIN_PASSWORD'));
|
|
});
|
|
|
|
it('opens the settings page from the home page', () => {
|
|
cy.visit('/');
|
|
|
|
cy.get('[data-testid=sidebar-toggle]').click();
|
|
cy.get('[data-testid=sidebar-menu-settings-mobile]').click();
|
|
|
|
cy.get('.heading').should('contain', 'General Settings');
|
|
});
|
|
|
|
it('modifies setting that requires restart', () => {
|
|
cy.visit('/settings');
|
|
|
|
cy.get('#trustProxy').click();
|
|
cy.get('form').submit();
|
|
cy.get('[data-testid=modal-title]').should(
|
|
'contain',
|
|
'Server Restart Required'
|
|
);
|
|
|
|
cy.get('[data-testid=modal-ok-button]').click();
|
|
cy.get('[data-testid=modal-title]').should('not.exist');
|
|
|
|
cy.get('[type=checkbox]#trustProxy').click();
|
|
cy.get('form').submit();
|
|
cy.get('[data-testid=modal-title]').should('not.exist');
|
|
});
|
|
});
|