codeceptjs 4.0.1-beta.20 → 4.0.1-beta.21

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.
Files changed (2) hide show
  1. package/lib/locator.js +5 -1
  2. package/package.json +1 -1
package/lib/locator.js CHANGED
@@ -123,7 +123,11 @@ class Locator {
123
123
  * @returns {string}
124
124
  */
125
125
  toString() {
126
- return this.output || `{${this.type}: ${this.value}}`
126
+ if (this.output) return this.output
127
+ if (this.locator && this.value === this.locator) {
128
+ return JSON.stringify(this.locator)
129
+ }
130
+ return `{${this.type}: ${this.value}}`
127
131
  }
128
132
 
129
133
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.1-beta.20",
3
+ "version": "4.0.1-beta.21",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [