frequi_origin/cypress/e2e/settings.cy.ts

29 lines
898 B
TypeScript
Raw Normal View History

import { setLoginInfo, defaultMocks } from './helpers';
describe('Settings', () => {
it('Settings stores', () => {
///
setLoginInfo();
defaultMocks();
cy.visit('/');
cy.wait('@Ping');
cy.wait('@ShowConf');
2023-04-07 13:13:26 +00:00
cy.get('li').contains('Online').should('be.visible');
cy.get('h1').contains('Welcome to the Freqtrade UI', { timeout: 5000 }).should('be.visible');
// cy.wait('@Strategies');
2023-04-06 16:22:28 +00:00
cy.get('[id=avatar-drop]').should('be.visible').parent().click();
2024-01-10 05:40:31 +00:00
cy.get('.dropdown-menu > * > [href="/settings"]').click();
cy.contains('FreqUI Settings');
// cy.get('[id=settings-lock-layout]').should('be.visible');
cy.get('select:first')
.select('asTitle')
.should(() => {
const settings = JSON.parse(localStorage.getItem('ftUISettings') || '{}');
expect(settings['openTradesInTitle']).to.eq('asTitle');
});
});
});