@redhat-developer/locators 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/lib/1.37.0.js +14 -4
- package/out/lib/1.88.0.d.ts +2 -0
- package/out/lib/1.88.0.js +13 -0
- package/package.json +5 -3
package/out/lib/1.37.0.js
CHANGED
|
@@ -159,17 +159,27 @@ const editor = {
|
|
|
159
159
|
actions: selenium_webdriver_1.By.className('actions-container'),
|
|
160
160
|
action: (label) => selenium_webdriver_1.By.xpath(`.//a[@title='${label}']`),
|
|
161
161
|
settingConstructor: (title, category) => selenium_webdriver_1.By.xpath(`.//div[@class='monaco-tl-row' and .//span/text()='${title}' and .//span/text()='${category}: ']`),
|
|
162
|
-
|
|
162
|
+
settingDescription: selenium_webdriver_1.By.className('setting-item-description'),
|
|
163
163
|
settingLabel: selenium_webdriver_1.By.className('setting-item-label'),
|
|
164
164
|
settingCategory: selenium_webdriver_1.By.className('setting-item-category'),
|
|
165
165
|
comboSetting: selenium_webdriver_1.By.css('select'),
|
|
166
|
-
comboOption: selenium_webdriver_1.By.
|
|
167
|
-
comboValue: '
|
|
166
|
+
comboOption: selenium_webdriver_1.By.css('option'),
|
|
167
|
+
comboValue: 'value',
|
|
168
168
|
textSetting: selenium_webdriver_1.By.css('input'),
|
|
169
169
|
checkboxSetting: selenium_webdriver_1.By.className('setting-value-checkbox'),
|
|
170
170
|
checkboxChecked: 'aria-checked',
|
|
171
171
|
linkButton: selenium_webdriver_1.By.className('edit-in-settings-button'),
|
|
172
|
-
itemCount: selenium_webdriver_1.By.className('settings-count-widget')
|
|
172
|
+
itemCount: selenium_webdriver_1.By.className('settings-count-widget'),
|
|
173
|
+
arraySetting: selenium_webdriver_1.By.className('setting-item-control'),
|
|
174
|
+
arrayRoot: selenium_webdriver_1.By.xpath(`.//div[@role='list' and contains(@class, 'setting-list-widget')]`),
|
|
175
|
+
arrayRow: selenium_webdriver_1.By.className('setting-list-row'),
|
|
176
|
+
arrayRowValue: selenium_webdriver_1.By.className('setting-list-value'),
|
|
177
|
+
arrayNewRow: selenium_webdriver_1.By.className('setting-list-new-row'),
|
|
178
|
+
arrayEditRow: selenium_webdriver_1.By.className('setting-list-edit-row'),
|
|
179
|
+
arrayBtnConstructor: (label) => selenium_webdriver_1.By.xpath(`.//a[contains(@role, 'button') and @aria-label='${label}']`),
|
|
180
|
+
arraySettingItem: {
|
|
181
|
+
btnConstructor: (label) => selenium_webdriver_1.By.xpath(`.//a[contains(@role, 'button') and text()='${label}']`)
|
|
182
|
+
}
|
|
173
183
|
},
|
|
174
184
|
DiffEditor: {
|
|
175
185
|
originalEditor: selenium_webdriver_1.By.className('original-in-monaco-diff-editor'),
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diff = void 0;
|
|
4
|
+
const page_objects_1 = require("@redhat-developer/page-objects");
|
|
5
|
+
exports.diff = {
|
|
6
|
+
locators: {
|
|
7
|
+
FindWidget: {
|
|
8
|
+
toggleReplace: page_objects_1.By.xpath(`.//div[@aria-label="Toggle Replace"]`),
|
|
9
|
+
button: (title) => page_objects_1.By.xpath(`.//div[@role='button' and starts-with(@aria-label, "${title}")]`)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=1.88.0.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-developer/locators",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Pluggable Page Objects locators for an ExTester framework.",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -31,12 +31,14 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"prepack": "npm run build",
|
|
34
|
-
"build": "npm run clean &&
|
|
34
|
+
"build": "npm run clean && npm run compile",
|
|
35
|
+
"compile": "tsc -p ./ && npm run lint",
|
|
36
|
+
"lint": "eslint lib --ext .ts",
|
|
35
37
|
"clean": "rimraf out"
|
|
36
38
|
},
|
|
37
39
|
"peerDependencies": {
|
|
38
40
|
"@redhat-developer/page-objects": ">=1.0.0",
|
|
39
41
|
"selenium-webdriver": ">=4.6.1"
|
|
40
42
|
},
|
|
41
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "466d3c63ba056100ba48685e2a6581ae37a38c2a"
|
|
42
44
|
}
|