frequi_origin/cypress/e2e/logs.cy.ts

19 lines
492 B
TypeScript
Raw Normal View History

2022-09-04 14:44:27 +00:00
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');
2024-01-10 05:36:27 +00:00
cy.get('span').should('contain.text', 'Checking exchange...');
2022-09-04 14:44:27 +00:00
cy.get('button[id=refresh-logs]').click();
cy.wait('@Logs');
});
});