fix: restore viewport setting for API readiness in tests

This commit is contained in:
Javier Segarra 2025-03-24 01:42:43 +01:00
parent 4a5171aa6e
commit d8bea48b26
2 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,6 @@ const firstRow = (field, index = 1) =>
describe('Monitor Tickets Table', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 720);
cy.visit('/#/monitor/tickets');
cy.waitForElement('.q-page');
cy.intercept('GET', '**/SalesMonitors/salesFilter*').as('filterRequest');

View File

@ -68,6 +68,7 @@ const waitForApiReady = (url, maxRetries = 20, delay = 1000) => {
};
before(() => {
cy.viewport(1920, 720);
waitForApiReady('/api/Applications/status');
});