@@ -15,7 +15,7 @@ context('Form', () => {
15
15
cy . get ( '[id="#/properties/description-input"]' ) . clear ( ) . type ( descText ) ;
16
16
cy . get ( '[id="#/properties/done-input"]' ) . uncheck ( ) ;
17
17
cy . get ( '[id="#/properties/recurrence"]' ) . parent ( ) . click ( ) ;
18
- cy . get ( '[data-value="Monthly "]' ) . click ( ) ;
18
+ cy . get ( '[id="#/properties/recurrence-option-3 "]' ) . click ( ) ; // Monthly
19
19
cy . get ( '[id="#/properties/recurrence_interval-input"]' )
20
20
. clear ( )
21
21
. type ( recurrenceIntervalText ) ;
@@ -33,7 +33,7 @@ context('Form', () => {
33
33
34
34
expect ( data . description ) . to . equal ( descText ) ;
35
35
expect ( data . done ) . to . equal ( false ) ;
36
- // expect(data.recurrence).to.equal('Monthly');
36
+ expect ( data . recurrence ) . to . equal ( 'Monthly' ) ;
37
37
expect ( data . recurrence_interval ) . to . equal ( recurrenceIntervalText ) ;
38
38
expect ( data . due_date ) . to . equal ( dateText ) ;
39
39
expect ( data . rating ) . to . equal ( 5 ) ;
@@ -49,17 +49,17 @@ context('Form', () => {
49
49
50
50
cy . get ( '[id="#/properties/due_date"] p:first-child' ) . should ( 'not.be.empty' ) ;
51
51
52
- // cy.get('[id="#/properties/recurrence"] > div' ).click();
53
- // cy.get('[data-value="Never "]').click();
52
+ cy . get ( '[id="#/properties/recurrence"]' ) . parent ( ) . click ( ) ;
53
+ cy . get ( '[id="#/properties/recurrence-option-0 "]' ) . click ( ) ; // Never
54
54
55
- // cy.get('[id="#/properties/recurrence_interval"]').should('not.exist');
55
+ cy . get ( '[id="#/properties/recurrence_interval"]' ) . should ( 'not.exist' ) ;
56
56
57
57
cy . get ( '[id="boundData"]' )
58
58
. invoke ( 'text' )
59
59
. then ( content => {
60
60
const data = JSON . parse ( content ) ;
61
61
62
- // expect(data.due_date).to.equal('Invalid date');
62
+ expect ( data . due_date ) . to . equal ( 'Invalid date' ) ;
63
63
} ) ;
64
64
} ) ;
65
65
} ) ;
0 commit comments