Skip to content

Commit 82e3ac5

Browse files
committed
hardened test
1 parent 9aa3e72 commit 82e3ac5

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

tests/codeceptjs/editors/object_test.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,15 @@ Scenario('should hide but not delete additional properties, when no_additional_p
133133
assert.equal(value.age, 34); // This will currently fail
134134
});
135135

136-
Scenario('should have unique ids @current', (I) => {
136+
Scenario('should have unique ids', (I) => {
137137
I.amOnPage('object-no-duplicated-id.html');
138138
I.donSeeDuplicatedIds()
139+
I.waitForText('i am actually a cat')
140+
I.waitForText('i am actually a dog')
141+
I.click('.json-editor-btn-edit_properties')
142+
I.click('.form-group:nth-child(1) .form-check-input')
143+
I.waitForText('i am actually a dog')
144+
I.click('.form-group:nth-child(1) .form-check-input')
145+
I.click('.form-group:nth-child(2) .form-check-input')
146+
I.waitForText('i am actually a cat')
139147
});

tests/pages/object-no-duplicated-id.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@
2525
var schema = {
2626
"description": "A representation of a person, company, organization, or place",
2727
"type": "object",
28-
"required": [
29-
"cat",
30-
"dog"
31-
],
3228
"properties": {
3329
"cat": {
3430
"title": "Cat",
3531
"type": "object",
3632
"properties": {
3733
"title": {
38-
"title": "Title",
34+
"title": "i am actually a cat",
3935
"type": "string",
4036
"format": "textarea"
4137
}
@@ -46,7 +42,7 @@
4642
"type": "object",
4743
"properties": {
4844
"title": {
49-
"title": "Title",
45+
"title": "i am actually a dog",
5046
"type": "string",
5147
"format": "textarea"
5248
}

0 commit comments

Comments
 (0)