refactor: refs #6695 fix invoiceOutSummary
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Alex Moreno 2025-02-28 11:37:49 +01:00
parent 7db302ac9c
commit 0d2178fc5c
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,8 @@
cypressParallel() { cypressParallel() {
# TEST_PATHS=(
# '...'
# )
# printf "%s\n" "${TEST_PATHS[@]}" | xargs -P $1 -I {} sh -c 'xvfb-run -a cypress run --headless --browser chromium --spec {}'
find 'test/cypress/integration' -mindepth 1 -maxdepth 1 -type d | xargs -P "$1" -I {} sh -c 'echo "🔷 {}" && xvfb-run -a cypress run --headless --browser chromium --spec "{}" --quiet > /dev/null 2>&1' find 'test/cypress/integration' -mindepth 1 -maxdepth 1 -type d | xargs -P "$1" -I {} sh -c 'echo "🔷 {}" && xvfb-run -a cypress run --headless --browser chromium --spec "{}" --quiet > /dev/null 2>&1'
wait wait
} }

View File

@ -13,7 +13,6 @@ describe('InvoiceOut summary', () => {
const confirmSend = '.q-btn--unelevated'; const confirmSend = '.q-btn--unelevated';
beforeEach(() => { beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer'); cy.login('developer');
cy.visit(`/#/invoice-out/1/summary`); cy.visit(`/#/invoice-out/1/summary`);
}); });
@ -36,7 +35,9 @@ describe('InvoiceOut summary', () => {
it('should open the ticket list', () => { it('should open the ticket list', () => {
cy.get(toTicketList).click(); cy.get(toTicketList).click();
cy.get('.descriptor').should('be.visible'); cy.get('.descriptor').should('be.visible');
cy.dataCy('vnFilterPanelChip').should('include.text', 'T1111111'); cy.get('[data-col-field="stateFk"]').each(($el) => {
cy.wrap($el).contains('T1111111');
});
}); });
it('should transfer the invoice ', () => { it('should transfer the invoice ', () => {

View File

@ -16,7 +16,6 @@ describe('Item list', () => {
cy.get('.q-virtual-scroll__content > :nth-child(4) > :nth-child(4)').click(); cy.get('.q-virtual-scroll__content > :nth-child(4) > :nth-child(4)').click();
}); });
// https://redmine.verdnatura.es/issues/8421
it('should create an item', () => { it('should create an item', () => {
const data = { const data = {
Description: { val: `Test item` }, Description: { val: `Test item` },