Skip to content

Commit

Permalink
Merge pull request #242 from ProcessMaker/userActivityLogging
Browse files Browse the repository at this point in the history
commit
  • Loading branch information
pablobarrososso authored Sep 25, 2024
2 parents 122cc06 + 47f13af commit 1ab6c25
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"date-fns": "^3.6.0"
},
"dependencies": {
"@processmaker/cypress-utils": "^1.0.229"
"@processmaker/cypress-utils": "^1.0.230"
}
}
2 changes: 1 addition & 1 deletion pages/userActivityLogging.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class userActivityLogging{
accessToSpecificSecurityLog(log){
const xpath = selectors.securityLog.replace('log', log);
cy.xpath(xpath).should('be.visible');
cy.xpath(selectors.securityLog.replace('log', log)).click();
cy.xpath((selectors.securityLog.replace('log', log))[1]).click();
}

/**
Expand Down
6 changes: 3 additions & 3 deletions pages/userActivityLoggingExecution.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ export class userActivityLoggingExecution{
userActivity.checkLabelsSecurityLogsLabels(["Name:", "Deleted At:"]);
userActivity.checkLabelsSecurityLogsSpan([newGroupname]);
}

securityLogsDataConnectorResourceActionCheck(name){
userActivity.accessToSecurityLogs();
userActivity.searchByEvent("ConnectorResourceAction");
userActivity.searchByEvent("DataConnectorResourceAction");
userActivity.accessToSpecificSecurityLog('DataConnectorResourceAction');
userActivity.checkLabelsSecurityLogsLabels(["Name:","Created At:","Description:", "Action:", "Method:", "DataConnector:"]);
userActivity.checkLabelsSecurityLogsSpan(["test QA", "Resource Created", "GET", name]);
Expand All @@ -154,11 +155,10 @@ export class userActivityLoggingExecution{

securityLogsDataConnectorVerifyResource(resourceName, labels, span) {
userActivity.accessToSecurityLogs();
userActivity.searchByEvent("ConnectorResourceAction");
userActivity.searchByEvent("DataConnectorResourceAction");
userActivity.accessToSpecificSecurityLog(resourceName);
userActivity.checkLabelsSecurityLogsLabels(labels);
userActivity.checkLabelsSecurityLogsSpan(span);
// userActivity.checkLabelsSecurityLogsHref(["list"]);
}

securityLogsDataCustomizeUiUpdated() {
Expand Down

0 comments on commit 1ab6c25

Please sign in to comment.