mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
19 lines
497 B
TypeScript
19 lines
497 B
TypeScript
|
import { setLoginInfo, defaultMocks } from './helpers';
|
||
|
|
||
|
describe('Logs', () => {
|
||
|
it('Displays and reloads logs', () => {
|
||
|
///
|
||
|
defaultMocks();
|
||
|
cy.intercept('GET', '**/api/v1/logs', { fixture: 'logs.json' }).as('Logs');
|
||
|
setLoginInfo();
|
||
|
|
||
|
cy.visit('/logs');
|
||
|
cy.wait('@Ping');
|
||
|
cy.wait('@ShowConf');
|
||
|
cy.wait('@Logs');
|
||
|
cy.get('textarea').should('contain.value', 'Checking exchange...');
|
||
|
cy.get('button[id=refresh-logs]').click();
|
||
|
cy.wait('@Logs');
|
||
|
});
|
||
|
});
|