@@ -16,21 +16,21 @@ describe('user student E2E', () =>{
16
16
cy . contains ( "Some files are missing" ) . parent ( ) . find ( 'button' ) . click ( )
17
17
//Upload files
18
18
cy . fixture ( './demoData/Blockworld_domain_normal.pddl' ) . then ( fileContent => {
19
- cy . get ( 'input[type="file"]' ) . attachFile ( {
19
+ cy . contains ( 'Domain File' ) . parent ( ) . parent ( ) . parent ( ) . find ( 'input[type="file"]' ) . attachFile ( {
20
20
fileContent : fileContent . toString ( ) ,
21
21
fileName : 'Blockworld_domain_normal.pddl' ,
22
22
mimeType : 'file'
23
23
} ) ;
24
24
} ) ;
25
25
cy . fixture ( './demoData/Blockworld_problem_normal.pddl' ) . then ( fileContent => {
26
- cy . contains ( 'Problem File' ) . parentsUntil ( 'div' ) . parent ( ) . find ( 'input[type="file"]' ) . attachFile ( {
26
+ cy . contains ( 'Problem File' ) . parent ( ) . parent ( ) . parent ( ) . find ( 'input[type="file"]' ) . attachFile ( {
27
27
fileContent : fileContent . toString ( ) ,
28
28
fileName : 'Blockworld_problem_normal.pddl' ,
29
29
mimeType : 'file'
30
30
} ) ;
31
31
} ) ;
32
32
cy . fixture ( './demoData/Blocksworld_AP.pddl' ) . then ( fileContent => {
33
- cy . contains ( 'Animation File' ) . parentsUntil ( 'div' ) . parent ( ) . find ( 'input[type="file"]' ) . attachFile ( {
33
+ cy . contains ( 'Animation File' ) . parent ( ) . parent ( ) . parent ( ) . find ( 'input[type="file"]' ) . attachFile ( {
34
34
fileContent : fileContent . toString ( ) ,
35
35
fileName : 'Blocksworld_AP.pddl' ,
36
36
mimeType : 'file'
@@ -42,6 +42,6 @@ describe('user student E2E', () =>{
42
42
cy . contains ( 'Upload Files' ) . click ( )
43
43
cy . wait ( 5000 )
44
44
45
- cy . get ( 'div[style="height: 50px;"] ' ) . should ( "be.visible" )
45
+ cy . get ( 'canvas ' ) . should ( "be.visible" )
46
46
} )
47
47
} )
0 commit comments