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');
|
|
|
|
// cy.wait('@Strategies');
|
|
|
|
|
2022-04-14 04:46:58 +00:00
|
|
|
cy.get('[id=avatar-drop]').parent().click();
|
2022-04-13 18:12:12 +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');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|