Skip to content

Commit b0ccc46

Browse files
committed
Separates Nightwatch tests into two files
1 parent 6dc707c commit b0ccc46

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

test/e2e/nightwatch/tests/css.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var dragAndDrop = require('../../../../lib/index').codeForSelectors;
2+
3+
module.exports = {
4+
'Drag and Drop with Nightwatch using CSS selectors': function(browser) {
5+
browser
6+
.url('https://kuniwak.github.io/html-dnd/test.html')
7+
.assert.containsText('#result', 'NG')
8+
.execute(dragAndDrop, ['#draggable', '#droppable'])
9+
.assert.containsText('#result', 'OK')
10+
.end();
11+
}
12+
};

test/e2e/nightwatch/tests/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/e2e/nightwatch/tests/xpath.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var dragAndDrop = require('../../../../lib/index').codeForXPaths;
2+
3+
module.exports = {
4+
'Drag and Drop with Nightwatch using XPath': function(browser) {
5+
browser
6+
.url('https://kuniwak.github.io/html-dnd/test.html')
7+
.assert.containsText('#result', 'NG')
8+
.execute(dragAndDrop, ['//*[@id="draggable"]', '//*[@id="droppable"]'])
9+
.assert.containsText('#result', 'OK')
10+
.end();
11+
}
12+
};

0 commit comments

Comments
 (0)