mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
* refactor(settings): move network settings to their own settings tab This PR moves the network settings out of the General Settings section to a new Netowrk Settings tab. * fix: add missing translations * fix: fix cypress tests for network settings * refactor: create a separate section for network settings
33 lines
942 B
TypeScript
33 lines
942 B
TypeScript
describe('General Settings', () => {
|
|
beforeEach(() => {
|
|
cy.loginAsAdmin();
|
|
});
|
|
|
|
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/network');
|
|
|
|
cy.get('#trustProxy').click();
|
|
cy.get('[data-testid=settings-network-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('[data-testid=settings-network-form]').submit();
|
|
cy.get('[data-testid=modal-title]').should('not.exist');
|
|
});
|
|
});
|