Merge remote-tracking branch 'origin/main' into feature/safari_dropdown_bug
This commit is contained in:
commit
04f1460077
|
@ -1,3 +1,5 @@
|
||||||
|
import groovy.json.JsonBuilder
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
|
||||||
|
@ -45,6 +47,17 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
stage('Prep') {
|
||||||
|
steps { script {
|
||||||
|
def jobMetaJson = new JsonBuilder([
|
||||||
|
git_commit: env.GIT_COMMIT.take(7),
|
||||||
|
git_branch: env.GIT_BRANCH,
|
||||||
|
build_id: env.BUILD_ID,
|
||||||
|
]).toPrettyString()
|
||||||
|
sh "echo '${jobMetaJson}' > version_info.json"
|
||||||
|
} }
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps { script {
|
steps { script {
|
||||||
dir("spiffworkflow-${params.COMPONENT}") {
|
dir("spiffworkflow-${params.COMPONENT}") {
|
||||||
|
|
|
@ -86,7 +86,7 @@ const submitWithUser = (
|
||||||
};
|
};
|
||||||
|
|
||||||
//Consulting Fees Path - Without Files
|
//Consulting Fees Path - Without Files
|
||||||
describe('Consulting Fees Path - Without Files', () => {
|
describe.only('Consulting Fees Path - Without Files', () => {
|
||||||
Cypress._.times(1, () => {
|
Cypress._.times(1, () => {
|
||||||
//Budget owner approves the request
|
//Budget owner approves the request
|
||||||
it('Budget owner approves', () => {
|
it('Budget owner approves', () => {
|
||||||
|
|
|
@ -89,7 +89,7 @@ const submitWithUser = (
|
||||||
};
|
};
|
||||||
|
|
||||||
//Equipment Path - Without Files
|
//Equipment Path - Without Files
|
||||||
describe('Equipment Path - Without Files', () => {
|
describe.only('Equipment Path - Without Files', () => {
|
||||||
|
|
||||||
Cypress._.times(1, () => {
|
Cypress._.times(1, () => {
|
||||||
//Out of Policy. People Ops Partner Group and Budget owner approves the request
|
//Out of Policy. People Ops Partner Group and Budget owner approves the request
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
//Software and License - Without Files
|
//Software and License - Without Files
|
||||||
describe('Initiate a Request - Without Files', () => {
|
describe.only('Initiate a Request - Without Files', () => {
|
||||||
Cypress._.times(1, () => {
|
Cypress._.times(1, () => {
|
||||||
//Submit a Software and License request - Without Files
|
//Submit a Software and License request - Without Files
|
||||||
it('Submit a Software and License request', () => {
|
it('Submit a Software and License request', () => {
|
||||||
|
@ -610,7 +610,7 @@ describe('Initiate a Request - Without Files', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
//Cancel a Software and License request 2- Without Files
|
//Cancel a Software and License request 2- Without Files
|
||||||
it.only('Cancel a Software and License request 2', () => {
|
it('Cancel a Software and License request 2', () => {
|
||||||
let username = Cypress.env('requestor_username');
|
let username = Cypress.env('requestor_username');
|
||||||
let password = Cypress.env('requestor_password');
|
let password = Cypress.env('requestor_password');
|
||||||
cy.log('=====username : ' + username);
|
cy.log('=====username : ' + username);
|
||||||
|
|
|
@ -85,7 +85,7 @@ const submitWithUser = (
|
||||||
};
|
};
|
||||||
|
|
||||||
//Learning and Development Path - Without Files
|
//Learning and Development Path - Without Files
|
||||||
describe('Learning and Development Path - Without Files', () => {
|
describe.only('Learning and Development Path - Without Files', () => {
|
||||||
|
|
||||||
Cypress._.times(1, () => {
|
Cypress._.times(1, () => {
|
||||||
//People Ops Partner Group approves the request
|
//People Ops Partner Group approves the request
|
||||||
|
@ -252,7 +252,7 @@ describe('Learning and Development Path - Without Files', () => {
|
||||||
cy.contains('Task: Enter NDR Items', { timeout: 60000 });
|
cy.contains('Task: Enter NDR Items', { timeout: 60000 });
|
||||||
*/
|
*/
|
||||||
cy.get('#root_item_0_sub_category').select('books');
|
cy.get('#root_item_0_sub_category').select('books');
|
||||||
cy.get('#root_item_0_item_name').clear().type('The role of the L&D function has evolved to meet the demands of digital transformation and a modern workforce.');
|
cy.get('#root_item_0_item_name').clear().type('The role of the L&D function has evolved to meet the demands of digital transformation and a modern.');
|
||||||
cy.get('#root_item_0_qty').clear().type('5');
|
cy.get('#root_item_0_qty').clear().type('5');
|
||||||
cy.get('#root_item_0_currency_type').select('Fiat');
|
cy.get('#root_item_0_currency_type').select('Fiat');
|
||||||
cy.get('#root_item_0_currency').select('EUR');
|
cy.get('#root_item_0_currency').select('EUR');
|
||||||
|
|
|
@ -85,7 +85,7 @@ const submitWithUser = (
|
||||||
cy.wait(2000);
|
cy.wait(2000);
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('Other Fees Path - Without Files', () => {
|
describe.only('Other Fees Path - Without Files', () => {
|
||||||
|
|
||||||
Cypress._.times(1, () => {
|
Cypress._.times(1, () => {
|
||||||
//Budget owner approves the request
|
//Budget owner approves the request
|
||||||
|
|
|
@ -88,7 +88,7 @@ const submitWithUser = (
|
||||||
};
|
};
|
||||||
|
|
||||||
//Software and Licenses Path - Without Files
|
//Software and Licenses Path - Without Files
|
||||||
describe('Software and Licenses Path - Without Files', () => {
|
describe.only('Software and Licenses Path - Without Files', () => {
|
||||||
|
|
||||||
Cypress._.times(1, () => {
|
Cypress._.times(1, () => {
|
||||||
|
|
||||||
|
|
|
@ -59,11 +59,13 @@ Cypress.Commands.add('login', (username, password) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('logout', (selector, ...args) => {
|
Cypress.Commands.add('logout', (selector, ...args) => {
|
||||||
cy.getBySel('logout-button').click();
|
cy.wait(2000);
|
||||||
|
//cy.getBySel('logout-button').click();
|
||||||
|
cy.get('#root > div > header > div.cds--header__global > span:nth-child(3) > button > svg').click();
|
||||||
if (Cypress.env('SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK') === true) {
|
if (Cypress.env('SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK') === true) {
|
||||||
// otherwise we can click logout, quickly load the next page, and the javascript
|
// otherwise we can click logout, quickly load the next page, and the javascript
|
||||||
// doesn't have time to actually sign you out
|
// doesn't have time to actually sign you out
|
||||||
|
//cy.wait(4000);
|
||||||
cy.contains('Sign in to your account');
|
cy.contains('Sign in to your account');
|
||||||
} else {
|
} else {
|
||||||
cy.get('#spiff-login-button').should('exist');
|
cy.get('#spiff-login-button').should('exist');
|
||||||
|
@ -104,7 +106,10 @@ Cypress.Commands.add(
|
||||||
(expectAutoRedirectToHumanTask = false, returnToProcessModelShow = true) => {
|
(expectAutoRedirectToHumanTask = false, returnToProcessModelShow = true) => {
|
||||||
// cy.getBySel('start-process-instance').click();
|
// cy.getBySel('start-process-instance').click();
|
||||||
// click on button with text Start
|
// click on button with text Start
|
||||||
cy.get('button')
|
//cy.get('button')
|
||||||
|
//cy.get('#process-model-tile-manage-procurement\\/procurement\\/requisition-order-management\\/new-demand-request-procurement > div > button')
|
||||||
|
cy.get('#process-model-tile-manage-procurement\\/procurement\\/requisition-order-management\\/request-goods-services > div > button')
|
||||||
|
//cy.get('#process-model-tile-manage-procurement\\/procurement\\/requisition-order-management\\/raise-new-demand-request > div > button')
|
||||||
.contains(/^Start$/)
|
.contains(/^Start$/)
|
||||||
.click();
|
.click();
|
||||||
if (expectAutoRedirectToHumanTask) {
|
if (expectAutoRedirectToHumanTask) {
|
||||||
|
|
Loading…
Reference in New Issue