fix: refs #6695 e2e stockBought
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-10 10:29:23 +01:00
parent cf851c3cb2
commit 95a8c0c3d0
2 changed files with 19 additions and 6 deletions

20
Jenkinsfile vendored
View File

@ -117,10 +117,22 @@ pipeline {
} }
} }
stage('Up') { stage('Up') {
steps { parallel{
// sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d db" stage('Database') {
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d back" steps {
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d front" sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d vn-database"
}
}
stage('Backend') {
steps {
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d back"
}
}
stage('Frontend') {
steps {
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d front"
}
}
} }
} }
stage('Run E2E') { stage('Run E2E') {

View File

@ -14,8 +14,9 @@ describe('EntryStockBought', () => {
cy.addBtnClick(); cy.addBtnClick();
cy.get('input[aria-label="Reserve"]').type('1'); cy.get('input[aria-label="Reserve"]').type('1');
cy.get('input[aria-label="Date"]').eq(1).clear(); cy.get('input[aria-label="Date"]').eq(1).clear();
cy.get('input[aria-label="Date"]').eq(1).type('01-01'); cy.get('input[aria-label="Date"]').eq(1).type('01-01-2001');
cy.get('input[aria-label="Buyer"]').type('buyerboss{downarrow}{enter}'); cy.selectOption('input[aria-label="Buyer"]', 'buyerboss');
cy.get('#formModel button[title="Save"]').click();
cy.get('.q-notification__message').should('have.text', 'Data created'); cy.get('.q-notification__message').should('have.text', 'Data created');
}); });
it('Should check detail for the buyer', () => { it('Should check detail for the buyer', () => {