@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 CHANGED
@@ -1,6 +1,2 @@
1
1
  COMPOSE_PROJECT_NAME=json-editor
2
2
  COMPOSE_FILE=./tests/docker-compose.yml:./tests/docker-compose-local.yml
3
-
4
-
5
- #image: seleniarm/standalone-chromium:114.0
6
- #platform: linux/x86_64
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Unreleased
2
2
 
3
+ ### 2.15.1
4
+
5
+ - Fixed #1563 and #1558. Select values not displayed
6
+
3
7
  ### 2.15.0
4
8
 
5
9
  - Added option enforce_const
@@ -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) {