Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibazulic committed Jul 19, 2024
1 parent 110c7d4 commit f1a1c04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/cypress/e2e/usage-logs.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ describe('Usage Logs Export', () => {
});

it('toggle chart', () => {
cy.intercept('GET', '/api/v1/organization/projectquay/logs?*', logsResp);
cy.intercept(
'GET',
'/api/v1/organization/projectquay/aggregatelogs?*',
aggregateLogsResp,
);
cy.visit('/organization/projectquay');
cy.contains('Logs').click();

Expand All @@ -198,7 +202,7 @@ describe('Usage Logs Export', () => {
it('empty chart', () => {
cy.visit('/organization/projectquay');
cy.contains('Logs').click();
cy.get('[p]').contains('No data to display.').should('be.visible');
cy.contains('No data to display.').should('be.visible');
});

it('filter logs', () => {
Expand Down

0 comments on commit f1a1c04

Please sign in to comment.