File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ describe(`Test indexes`, () => {
7
7
cy . deleteAllIndexes ( )
8
8
cy . wait ( WAITING_TIME )
9
9
10
- cy . createIndex ( 'lovies ' )
10
+ cy . createIndex ( 'empty_index ' )
11
11
cy . wait ( WAITING_TIME )
12
12
cy . createIndex ( 'movies' )
13
13
cy . wait ( WAITING_TIME )
@@ -31,12 +31,17 @@ describe(`Test indexes`, () => {
31
31
cy . wait ( WAITING_TIME )
32
32
} )
33
33
34
+ after ( ( ) => {
35
+ cy . deleteAllIndexes ( )
36
+ cy . wait ( WAITING_TIME )
37
+ } )
38
+
34
39
beforeEach ( ( ) => {
35
40
cy . visit ( '/' )
36
41
} )
37
42
38
43
it ( 'Should display the first index based on localeCompare order on the uid' , ( ) => {
39
- cy . get ( 'button[aria-haspopup=menu]' ) . contains ( 'lovies 0' )
44
+ cy . get ( 'button[aria-haspopup=menu]' ) . contains ( 'empty_index 0' )
40
45
} )
41
46
42
47
it ( 'Should list all the indexes inside the select' , ( ) => {
@@ -46,7 +51,7 @@ describe(`Test indexes`, () => {
46
51
. children ( )
47
52
. should ( ( $p ) => {
48
53
expect ( $p ) . to . have . length ( 3 )
49
- expect ( $p ) . to . contain ( 'lovies 0' )
54
+ expect ( $p ) . to . contain ( 'empty_index 0' )
50
55
expect ( $p ) . to . contain ( 'movies 33' )
51
56
expect ( $p ) . to . contain ( 'pokemon 3' )
52
57
} )
@@ -79,9 +84,4 @@ describe(`Test indexes`, () => {
79
84
cy . contains ( 'Bulbasaur' )
80
85
} )
81
86
} )
82
-
83
- after ( ( ) => {
84
- cy . deleteAllIndexes ( )
85
- cy . wait ( WAITING_TIME )
86
- } )
87
87
} )
You can’t perform that action at this time.
0 commit comments