mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Add test for Performance view
This commit is contained in:
parent
28128519aa
commit
19b77e915b
|
@ -8,7 +8,6 @@ function tradeMocks() {
|
|||
cy.intercept('GET', '**/api/v1/whitelist', { fixture: 'whitelist.json' }).as('Whitelist');
|
||||
cy.intercept('GET', '**/api/v1/blacklist', { fixture: 'blacklist.json' }).as('Blacklist');
|
||||
cy.intercept('GET', '**/api/v1/locks', { fixture: 'locks_empty.json' }).as('Locks');
|
||||
cy.intercept('GET', '**/api/v1/performance', { fixture: 'performance.json' }).as('Performance');
|
||||
}
|
||||
|
||||
describe('Chart', () => {
|
||||
|
@ -27,7 +26,6 @@ describe('Chart', () => {
|
|||
cy.wait('@Whitelist');
|
||||
cy.wait('@Blacklist');
|
||||
cy.wait('@Locks');
|
||||
cy.wait('@Performance');
|
||||
cy.wait('@PairCandles');
|
||||
// Disable autorefresh
|
||||
cy.get('input[title="AutoRefresh"]').click();
|
||||
|
|
|
@ -8,7 +8,6 @@ function tradeMocks() {
|
|||
cy.intercept('GET', '**/api/v1/whitelist', { fixture: 'whitelist.json' }).as('Whitelist');
|
||||
cy.intercept('GET', '**/api/v1/blacklist', { fixture: 'blacklist.json' }).as('Blacklist');
|
||||
cy.intercept('GET', '**/api/v1/locks', { fixture: 'locks_empty.json' }).as('Locks');
|
||||
cy.intercept('GET', '**/api/v1/performance', { fixture: 'performance.json' }).as('Performance');
|
||||
// TODO: Daily mock is missing.
|
||||
// cy.intercept('GET', '**/api/v1/daily', { fixture: 'performance.json' }).as('Performance');
|
||||
}
|
||||
|
@ -28,7 +27,6 @@ describe('Dashboard', () => {
|
|||
cy.wait('@Whitelist');
|
||||
cy.wait('@Blacklist');
|
||||
cy.wait('@Locks');
|
||||
cy.wait('@Performance');
|
||||
cy.get('.drag-header').contains('Bot comparison').should('be.visible');
|
||||
cy.get('.drag-header').contains('Daily Profit').should('be.visible');
|
||||
cy.get('.drag-header').contains('Open Trades').should('be.visible');
|
||||
|
|
|
@ -30,13 +30,17 @@ describe('Trade', () => {
|
|||
cy.wait('@Whitelist');
|
||||
cy.wait('@Blacklist');
|
||||
cy.wait('@Locks');
|
||||
cy.wait('@Performance');
|
||||
cy.get('.drag-header').contains('Multi Pane').should('be.visible');
|
||||
cy.get('.drag-header').contains('Chart').should('be.visible');
|
||||
cy.get('button').should('contain', 'BTC/USDT');
|
||||
cy.get('button').should('contain', 'ETH/USDT').should('be.visible');
|
||||
cy.get('button').contains('ETH/USDT').should('be.visible');
|
||||
|
||||
cy.get('button').contains('Performance').should('be.visible').click();
|
||||
cy.wait('@Performance');
|
||||
|
||||
cy.get('th').contains('Profit USDT').should('be.visible');
|
||||
|
||||
// Test messageBox behavior
|
||||
// No modal visible
|
||||
cy.get('.modal-dialog > .modal-content > .modal-footer > .btn-secondary')
|
||||
|
|
Loading…
Reference in New Issue
Block a user