File tree Expand file tree Collapse file tree 3 files changed +24
-20
lines changed
test/e2e/nightwatch/tests Expand file tree Collapse file tree 3 files changed +24
-20
lines changed Original file line number Diff line number Diff line change
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
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
+ } ;
You can’t perform that action at this time.
0 commit comments