Some checks failed
Create and publish Docker images with specific build args / build-main-image (linux/amd64, ubuntu-latest) (push) Has been cancelled
Create and publish Docker images with specific build args / build-main-image (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64, ubuntu-latest) (push) Has been cancelled
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Create and publish Docker images with specific build args / build-cuda126-image (linux/amd64, ubuntu-latest) (push) Has been cancelled
Create and publish Docker images with specific build args / build-cuda126-image (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64, ubuntu-latest) (push) Has been cancelled
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Create and publish Docker images with specific build args / build-slim-image (linux/amd64, ubuntu-latest) (push) Has been cancelled
Create and publish Docker images with specific build args / build-slim-image (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Create and publish Docker images with specific build args / merge-main-images (push) Has been cancelled
Create and publish Docker images with specific build args / merge-cuda-images (push) Has been cancelled
Create and publish Docker images with specific build args / merge-cuda126-images (push) Has been cancelled
Create and publish Docker images with specific build args / merge-ollama-images (push) Has been cancelled
Create and publish Docker images with specific build args / merge-slim-images (push) Has been cancelled
Python CI / Format Backend (3.11.x) (push) Has been cancelled
Python CI / Format Backend (3.12.x) (push) Has been cancelled
Frontend Build / Format & Build Frontend (push) Has been cancelled
Frontend Build / Frontend Unit Tests (push) Has been cancelled
Close inactive issues / close-issues (push) Has been cancelled
64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
/// <reference path="../support/index.d.ts" />
|
|
import { adminUser } from '../support/e2e';
|
|
|
|
// These tests run through the various settings pages, ensuring that the user can interact with them as expected
|
|
describe('Settings', () => {
|
|
// Wait for 2 seconds after all tests to fix an issue with Cypress's video recording missing the last few frames
|
|
after(() => {
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
cy.wait(2000);
|
|
});
|
|
|
|
beforeEach(() => {
|
|
// Login as the admin user
|
|
cy.loginAdmin();
|
|
// Visit the home page
|
|
cy.visit('/');
|
|
// Click on the user menu
|
|
cy.get('button[aria-label="User Menu"]').click();
|
|
// Click on the settings link
|
|
cy.get('button').contains('Settings').click();
|
|
});
|
|
|
|
context('General', () => {
|
|
it('user can open the General modal and hit save', () => {
|
|
cy.get('button').contains('General').click();
|
|
cy.get('button').contains('Save').click();
|
|
});
|
|
});
|
|
|
|
context('Interface', () => {
|
|
it('user can open the Interface modal and hit save', () => {
|
|
cy.get('button').contains('Interface').click();
|
|
cy.get('button').contains('Save').click();
|
|
});
|
|
});
|
|
|
|
context('Audio', () => {
|
|
it('user can open the Audio modal and hit save', () => {
|
|
cy.get('button').contains('Audio').click();
|
|
cy.get('button').contains('Save').click();
|
|
});
|
|
});
|
|
|
|
context('Chats', () => {
|
|
it('user can open the Chats modal', () => {
|
|
cy.get('button').contains('Chats').click();
|
|
});
|
|
});
|
|
|
|
context('Account', () => {
|
|
it('user can open the Account modal and hit save', () => {
|
|
cy.get('button').contains('Account').click();
|
|
cy.get('button').contains('Save').click();
|
|
});
|
|
});
|
|
|
|
context('About', () => {
|
|
it('user can open the About modal', () => {
|
|
cy.get('button').contains('About').click();
|
|
});
|
|
});
|
|
});
|