Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@processmaker/cypress-utils

Package Overview
Dependencies
Maintainers
0
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@processmaker/cypress-utils - npm Package Compare versions

Comparing version 1.0.268 to 1.0.269

2

package.json
{
"name": "@processmaker/cypress-utils",
"version": "1.0.268",
"version": "1.0.269",
"description": "ProcessMaker Cypress Testing Utilities",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -48,7 +48,10 @@ import selectors from "#selectors/processLaunchPad";

}
openCategoryFromLaunchPad(category){
this.searchCategory(category);
cy.xpath(selectors.launch_category.replace('category',category)).should("be.visible");
cy.xpath(selectors.launch_category.replace('category',category)).first().click();
cy.wait(2000);
openCategoryFromLaunchPad(category,findCategory=true){
cy.get(selectors.launch_searchProcess).should("be.visible").clear();
cy.get(selectors.launch_searchProcess).type(category).should("have.value",category);
cy.get(selectors.launch_searchProcessButton).click();
if(findCategory)
cy.xpath(selectors.launch_cardCategory.replace("categoryName",category)).should("be.visible");
else
cy.xpath(selectors.launch_cardCategory.replace("categoryName",category)).should("not.exist");
}

@@ -83,5 +86,3 @@ searchProcessOfCategory(nameProcess){

cy.xpath("//*[contains(text(),'Save as PM Block')]").should("not.exist");
cy.xpath("//*[contains(text(),'Add to Project')]").should("be.visible");
cy.xpath("//*[contains(text(),'Configure')]").should("not.exist");
cy.xpath("//*[contains(text(),'View Documentation')]").should("not.exist");
cy.xpath("//*[contains(text(),'Archive')]").should("not.exist");

@@ -93,7 +94,6 @@ cy.xpath("//*[contains(text(),'Export')]").should("not.exist");

}
startRequestByLaunchPad(numRequests,requestOption){
if(numRequests<=1){
cy.xpath(selectors.launch_startProcessButton).should("be.visible");
cy.xpath(selectors.launch_startProcessButton).click();
}
startRequestByLaunchPadSingle(){
cy.wait(3000);
cy.xpath(selectors.launch_startProcessButton).should("be.visible");
cy.xpath(selectors.launch_startProcessButton).click();
}

@@ -106,7 +106,9 @@ findProcess(process, category){

bookmarkIconSelect(process){
cy.xpath(selectors.bookmarkSelection.replace('label',process)).invoke('attr','class')
let iconSelector = '//*[contains(@class,"header")]//*[contains(@class,"fa-bookmark")]';
//cy.xpath(selectors.bookmarkSelection.replace('label',process)).invoke('attr','class')
cy.xpath(iconSelector).invoke('attr','class')
.then(($class)=>{
cy.log("This is the value of the class"+ $class);
if($class.includes('unmarked')){
cy.xpath(selectors.bookmarkSelection.replace('label',process))
cy.xpath(iconSelector)
.should('be.visible')

@@ -134,3 +136,3 @@ .click();

position = position-1;
this.startRequestByLaunchPad(1,"");
this.startRequestByLaunchPadSingle();
cy.xpath(selectors.startEvent.replace('start', start)).eq(position).should('be.visible');

@@ -142,7 +144,6 @@ cy.xpath(selectors.startEvent.replace('start', start)).eq(position).click();

for (var i = 0; i < len; i++) {
this.searchCategory(elementArray[i]);
cy.xpath(selectors.processCategoryLabel.replace('element', elementArray[i])).should('be.visible');
cy.xpath(selectors.processCategoryLabel.replace('element', elementArray[i])).click();
cy.xpath(selectors.processLabel.replace('label',process)).should('be.visible');
cy.xpath(selectors.inputSearchCategories).clear();
this.openCategoryFromLaunchPad(elementArray[i]);
// cy.xpath(selectors.processCategoryLabel.replace('element', elementArray[i])).should('be.visible');
// cy.xpath(selectors.processCategoryLabel.replace('element', elementArray[i])).click();
// cy.xpath(selectors.processLabel.replace('label',process)).should('be.visible');
}

@@ -153,9 +154,2 @@ }

}
searchCategory(category){
cy.xpath(selectors.launch_category.replace('category','All Process')).should("be.visible");
cy.xpath(selectors.inputSearchCategories).type(category).should('have.value',category);
cy.xpath(selectors.inputSearchCategories).type('{enter}');
cy.wait(2000);
cy.xpath(selectors.launch_category.replace('category','All Process')).should("be.visible");
}
openAllProcesses(){

@@ -177,3 +171,5 @@ cy.xpath(selectors.launch_category.replace('category','All Process'))

cy.get(selectors.launch_searchProcess).should("be.visible");
cy.wait(3000);
cy.get(selectors.launch_searchProcess).type(nameProcess).should("have.value",nameProcess);
cy.wait(3000);
cy.get(selectors.launch_searchProcessButton).click();

@@ -187,9 +183,8 @@ if(findProcess)

unBookmarkIconSelect(process){
cy.xpath(selectors.bookmarkSelection.replace('label',process)).invoke('attr','class')
let iconSelector = '//*[contains(@class,"header")]//*[contains(@class,"fa-bookmark")]';
cy.xpath(iconSelector).invoke('attr','class')
.then(($class)=>{
cy.log("This is the value of the class"+ $class);
if($class.includes('bookmark marked')){
cy.xpath(selectors.bookmarkSelection.replace('label',process))
.should('be.visible')
.click();
if(!$class.includes('unmarked')){
cy.xpath(iconSelector).click({force:true});
cy.get(selectors.bookMarkedSuccessAlert).should('be.visible');

@@ -258,2 +253,6 @@ }

}
waitLaunchPageLoad(){
cy.get('[id="pie-chart"]').should('be.visible');
cy.wait(2000);
}
}

@@ -20,2 +20,3 @@ export default {

launch_cardProcess: '//*[contains(text(),"processName")]',
launch_cardCategory: '//button[contains(text(),"categoryName")]',
launch_startProcessButton: '//*[contains(text(),"Start this")]',

@@ -28,3 +29,3 @@ launch_elipsis: '//*[contains(@class,"header")]//*[contains(@class,"ellipsis")]//button',

optionMenuElement: "//div/li['.ellipsis-dropdown-item mx-auto']/a/div['.ellipsis-dropdown-content']/span[contains(text(), 'option')]",
startEvent: '//p[contains(text(),"start")]/parent::div//button',
startEvent: '//*[contains(text(),"start")]/parent::div//button',
launchPadSettingOption: '//a[contains(., "Launchpad Settings")]',

@@ -31,0 +32,0 @@ inputSearchCategories: '//input[@placeholder="Search Categories"]',

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc