fix: refs #6696 standardize viewport size in Cypress tests for consistency
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Javi Gallego 2025-04-10 07:30:26 +02:00
parent 70d8b65fcb
commit 0e7da211df
4 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import '../commands.js';
describe('EntryBuys', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('buyer');
cy.visit(`/#/entry/list`);
});

View File

@ -14,6 +14,7 @@ describe('InvoiceInList', () => {
};
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('administrative');
cy.visit(`/#/invoice-in/list`);
cy.get('#searchbar input').type('{enter}');

View File

@ -27,6 +27,7 @@ describe('Route', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);
cy.visit(`/#/route/list`);
cy.typeSearchbar('{enter}');
});

View File

@ -4,7 +4,8 @@ const firstRow = 'tbody > :nth-child(1)';
describe('TicketSale', () => {
describe('#23', () => {
beforeEach(() => {
cy.login('salesPerson');
cy.login('claimManager');
cy.viewport(1920, 1080);
cy.visit('/#/ticket/23/sale');
});
@ -103,7 +104,7 @@ describe('TicketSale', () => {
});
describe('#31 free ticket', () => {
beforeEach(() => {
cy.login('salesPerson');
cy.login('claimManager');
cy.visit('/#/ticket/31/sale');
});