Skip to content

Commit

Permalink
update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
eidng8 committed May 22, 2020
1 parent e224d6f commit 354da2a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/specs/declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ module.exports = {
page.cancelPopup();
page.assert.containsText('@declaration', 'encoding="utf-8"');
page.assert.outputContains('encoding="utf-8"');
page.assert.noEventFired();
page.assert.not.eventFired('declaration-changed');
},
};
4 changes: 2 additions & 2 deletions tests/e2e/specs/editing/cdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
'Forbids saving invalid XML': () => {
page.setValue('@raw', '>');
page.savePopup(true);
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.visible('@popup');
page.assert.visible('@error');
page.assert.visible('@message');
Expand All @@ -47,7 +47,7 @@ module.exports = {
'Cancel editing': () => {
page.setValue('@textarea', 'test cdata');
page.cancelPopup();
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.not.outputContains('test cdata');
},
};
4 changes: 2 additions & 2 deletions tests/e2e/specs/editing/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
'Forbids saving invalid XML': () => {
page.setValue('@raw', '>');
page.savePopup(true);
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.visible('@popup');
page.assert.visible('@error');
page.assert.visible('@message');
Expand All @@ -47,7 +47,7 @@ module.exports = {
'Cancel editing': () => {
page.setValue('@textarea', 'test comment');
page.cancelPopup();
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.not.outputContains('test comment');
},
};
4 changes: 2 additions & 2 deletions tests/e2e/specs/editing/doctype.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
'Forbids saving invalid XML': () => {
page.setValue('@raw', '>');
page.savePopup(true);
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.visible('@popup');
page.assert.visible('@error');
page.assert.visible('@message');
Expand All @@ -46,7 +46,7 @@ module.exports = {
'Cancel editing': () => {
page.setValue('@textarea', 'note SYSTEM "note.dtd"');
page.cancelPopup();
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.not.outputContains('<!DOCTYPE note SYSTEM "note.dtd">');
},
};
4 changes: 2 additions & 2 deletions tests/e2e/specs/editing/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = {
'Forbids saving invalid XML': () => {
page.setValue('@raw', '>');
page.savePopup(true);
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.visible('@popup');
page.assert.visible('@error');
page.assert.visible('@message');
Expand All @@ -88,7 +88,7 @@ module.exports = {
'Cancel editing': () => {
page.setValue('@raw', '<test a="b"/>');
page.cancelPopup();
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.not.outputContains('<test a="b">');
},
};
4 changes: 2 additions & 2 deletions tests/e2e/specs/editing/instruction.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = {
'Forbids saving invalid XML': () => {
page.setValue('@raw', '>');
page.savePopup(true);
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.visible('@popup');
page.assert.visible('@error');
page.assert.visible('@message');
Expand All @@ -59,7 +59,7 @@ module.exports = {
'Cancel editing': () => {
page.enterText('@tagName', 'test-tag');
page.cancelPopup();
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.not.outputContains('test-tag');
},
};
4 changes: 2 additions & 2 deletions tests/e2e/specs/editing/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
'Forbids saving invalid XML': () => {
page.setValue('@raw', '<');
page.savePopup(true);
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.visible('@popup');
page.assert.visible('@error');
page.assert.visible('@message');
Expand All @@ -48,7 +48,7 @@ module.exports = {
'Cancel editing': () => {
page.setValue('@textarea', 'test text');
page.cancelPopup();
page.assert.noEventFired();
page.assert.not.eventFired('node-changed');
page.assert.not.outputContains('test text');
},
};

0 comments on commit 354da2a

Please sign in to comment.