mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 10:43:52 +00:00
27 lines
715 B
TypeScript
27 lines
715 B
TypeScript
|
import { setLoginInfo, defaultMocks } from './helpers';
|
||
|
|
||
|
describe('Settings', () => {
|
||
|
it('Settings stores', () => {
|
||
|
///
|
||
|
setLoginInfo();
|
||
|
defaultMocks();
|
||
|
|
||
|
cy.visit('/');
|
||
|
cy.wait('@Ping');
|
||
|
cy.wait('@ShowConf');
|
||
|
// cy.wait('@Strategies');
|
||
|
|
||
|
cy.get('#__BVID__24__BV_toggle_').click();
|
||
|
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');
|
||
|
});
|
||
|
});
|
||
|
});
|