diff --git a/manifest.json b/manifest.json index 2da8b341..e5d78798 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "JDN — Page Object Generator", "description": "JDN – helps Test Automation Engineer to create Page Objects in the test automation framework and speed up test development", "devtools_page": "index.html", - "version": "3.16.0", + "version": "3.16.1", "icons": { "128": "icon128.png" }, diff --git a/package-lock.json b/package-lock.json index bab2d0b0..cb289b14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jdn-ai-chrome-extension", - "version": "3.16.0", + "version": "3.16.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jdn-ai-chrome-extension", - "version": "3.16.0", + "version": "3.16.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 132453bb..04ed51b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jdn-ai-chrome-extension", - "version": "3.16.0", + "version": "3.16.1", "description": "jdn-ai chrome extension", "scripts": { "start": "webpack --watch --env devenv", diff --git a/src/pageServices/contentScripts/contextmenu.js b/src/pageServices/contentScripts/contextmenu.js index 32f298ff..ba03e854 100644 --- a/src/pageServices/contentScripts/contextmenu.js +++ b/src/pageServices/contentScripts/contextmenu.js @@ -314,26 +314,17 @@ export const runContextMenu = () => { const noDeleted = () => predictedElements.some(({ deleted }) => !deleted); const areInProgress = () => predictedElements.some(({ locatorValue }) => { - const taskStatus = getTaskStatus( - locatorValue.locatorValue.xPathStatus, - locatorValue.locatorValue.cssSelectorStatus, - ); + const taskStatus = getTaskStatus(locatorValue.xPathStatus, locatorValue.cssSelectorStatus); return taskStatus === 'PENDING' || taskStatus === 'STARTED'; }); const areRevoked = () => predictedElements.some(({ locatorValue }) => { - const taskStatus = getTaskStatus( - locatorValue.locatorValue.xPathStatus, - locatorValue.locatorValue.cssSelectorStatus, - ); + const taskStatus = getTaskStatus(locatorValue.xPathStatus, locatorValue.cssSelectorStatus); return taskStatus === 'REVOKED'; }); const areFailed = () => predictedElements.some(({ locatorValue }) => { - const taskStatus = getTaskStatus( - locatorValue.locatorValue.xPathStatus, - locatorValue.locatorValue.cssSelectorStatus, - ); + const taskStatus = getTaskStatus(locatorValue.xPathStatus, locatorValue.cssSelectorStatus); return taskStatus === 'FAILURE'; });