From 017f3a32137bd1388bbe5b672aeb8ef463bbf93e Mon Sep 17 00:00:00 2001 From: Anna Iustus Date: Tue, 8 Aug 2023 23:02:41 +0200 Subject: [PATCH 1/2] feat: add initial state STARTED in jdn-status attr for all locators --- src/features/locators/reducers/identifyElements.thunk.ts | 1 + src/pageServices/contentScripts/highlight.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/locators/reducers/identifyElements.thunk.ts b/src/features/locators/reducers/identifyElements.thunk.ts index 2480b4cc..d6246171 100644 --- a/src/features/locators/reducers/identifyElements.thunk.ts +++ b/src/features/locators/reducers/identifyElements.thunk.ts @@ -74,6 +74,7 @@ export const onLocatorsCreated: Middleware = (store) => (next) => (action) => { const locators = action.payload; const { generateXpath } = selectAutoGeneratingLocatorTypes(state as RootState, locators); // generateCssSelector: false because it's run with attributes generation for performance reasons + // TODO: take generateCssSelector from selectAutoGeneratingLocatorTypes, when backend will be ready // @ts-ignore store.dispatch(runLocatorsGeneration({ locators, generateXpath, generateCssSelector: false })); } diff --git a/src/pageServices/contentScripts/highlight.js b/src/pageServices/contentScripts/highlight.js index 5da24722..28772e88 100644 --- a/src/pageServices/contentScripts/highlight.js +++ b/src/pageServices/contentScripts/highlight.js @@ -234,7 +234,7 @@ export const highlightOnPage = () => { div.id = jdnHash; div.className = getClassName(predictedElement); div.setAttribute("jdn-highlight", true); - div.setAttribute("jdn-status", predictedElement.locator.taskStatus); + div.setAttribute("jdn-status", predictedElement.locator.taskStatus || LocatorTaskStatus.STARTED); div.addEventListener("mouseover", () => { tooltipTimer = setTimeout(() => { showTooltip(coordinates); From 38fae03630634831f85576897e28d54de26e4e2c Mon Sep 17 00:00:00 2001 From: Anna Iustus Date: Wed, 9 Aug 2023 10:08:57 +0200 Subject: [PATCH 2/2] docs: update version --- manifest.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 7b3853a9..fd7c9a60 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "JDN", "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.13.555", + "version": "3.13.556", "icons": { "128": "icon128.png" }, diff --git a/package.json b/package.json index fc4ce8c3..36722fc1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jdn-ai-chrome-extension", - "version": "3.13.555", + "version": "3.13.556", "description": "jdn-ai chrome extension", "scripts": { "start": "webpack --watch --env devenv",