2022-04-13 18:12:12 +00:00
|
|
|
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');
|
2022-04-13 18:12:12 +00:00
|
|
|
// 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();
|
2022-04-13 18:12:12 +00:00
|
|
|
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');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|