@json-editor/json-editor 2.15.0 → 2.15.1
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/.env +0 -4
- package/CHANGELOG.md +4 -0
- package/config/codeceptjs_helpers.js +11 -0
- package/dist/jsoneditor.js +1 -1
- package/dist/jsoneditor.js.LICENSE.txt +1 -1
- package/dist/nonmin/jsoneditor.js +7 -4
- package/dist/nonmin/jsoneditor.js.map +1 -1
- package/package.json +1 -1
- package/src/editors/select.js +7 -3
- package/tests/codeceptjs/editors/integer_test.js +3 -1
- package/tests/codeceptjs/editors/select_test.js +12 -0
- package/tests/docker-compose-local.yml +2 -1
- package/tests/pages/integer.html +9 -10
- package/tests/pages/select-values.html +91 -0
package/.env
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -121,6 +121,17 @@ class customHelpers extends Helper {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
async getSelectedValueAndAssert(selector, expectedValue) {
|
|
125
|
+
const helper = this.helpers['Puppeteer'] || this.helpers['WebDriver']
|
|
126
|
+
|
|
127
|
+
const selectValue = await helper.executeScript((sel) => {
|
|
128
|
+
const selectElement = document.querySelector(sel);
|
|
129
|
+
return selectElement.value;
|
|
130
|
+
}, selector);
|
|
131
|
+
|
|
132
|
+
return assert.strictEqual(selectValue, expectedValue);
|
|
133
|
+
}
|
|
134
|
+
|
|
124
135
|
// Custom isTrue function.
|
|
125
136
|
// returns boolean value
|
|
126
137
|
async isTrue (val) {
|