@@ -15,7 +15,7 @@ context('Form', () => {
1515 cy . get ( '[id="#/properties/description-input"]' ) . clear ( ) . type ( descText ) ;
1616 cy . get ( '[id="#/properties/done-input"]' ) . uncheck ( ) ;
1717 cy . get ( '[id="#/properties/recurrence"]' ) . parent ( ) . click ( ) ;
18- cy . get ( '[data-value="Monthly "]' ) . click ( ) ;
18+ cy . get ( '[id="#/properties/recurrence-option-3 "]' ) . click ( ) ; // Monthly
1919 cy . get ( '[id="#/properties/recurrence_interval-input"]' )
2020 . clear ( )
2121 . type ( recurrenceIntervalText ) ;
@@ -33,7 +33,7 @@ context('Form', () => {
3333
3434 expect ( data . description ) . to . equal ( descText ) ;
3535 expect ( data . done ) . to . equal ( false ) ;
36- // expect(data.recurrence).to.equal('Monthly');
36+ expect ( data . recurrence ) . to . equal ( 'Monthly' ) ;
3737 expect ( data . recurrence_interval ) . to . equal ( recurrenceIntervalText ) ;
3838 expect ( data . due_date ) . to . equal ( dateText ) ;
3939 expect ( data . rating ) . to . equal ( 5 ) ;
@@ -49,17 +49,17 @@ context('Form', () => {
4949
5050 cy . get ( '[id="#/properties/due_date"] p:first-child' ) . should ( 'not.be.empty' ) ;
5151
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
5454
55- // cy.get('[id="#/properties/recurrence_interval"]').should('not.exist');
55+ cy . get ( '[id="#/properties/recurrence_interval"]' ) . should ( 'not.exist' ) ;
5656
5757 cy . get ( '[id="boundData"]' )
5858 . invoke ( 'text' )
5959 . then ( content => {
6060 const data = JSON . parse ( content ) ;
6161
62- // expect(data.due_date).to.equal('Invalid date');
62+ expect ( data . due_date ) . to . equal ( 'Invalid date' ) ;
6363 } ) ;
6464 } ) ;
6565} ) ;
0 commit comments