diff --git a/web/app/assets/javascripts/react-components/LessonBooking.js.jsx.coffee b/web/app/assets/javascripts/react-components/LessonBooking.js.jsx.coffee index 3c17455b9..d86dc7d12 100644 --- a/web/app/assets/javascripts/react-components/LessonBooking.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/LessonBooking.js.jsx.coffee @@ -682,6 +682,7 @@ UserStore = context.UserStore header = 'this lesson has been suspended' content = @renderStudentSuspended() + `
` else + if @studentMadeDefaultSlot() + message = this.slotMessage(this.state.booking.default_slot, 'accept') + + if @isRecurring() + detail = `

Your {this.lessonDesc()} will take place each {this.slotTime(this.state.booking.default_slot)}

` + else + detail = `

Your {this.lessonDesc()} will take place this {this.slotTime(this.state.booking.default_slot)}

` + + summary = `
+ {this.userHeader(this.teacher())} +

Has accepted your lesson request.

+ {detail} + {message} +
` decision = `` `
diff --git a/web/spec/features/lesson_booking_status_spec.rb b/web/spec/features/lesson_booking_status_spec.rb index cb67952ed..8e0dc466b 100644 --- a/web/spec/features/lesson_booking_status_spec.rb +++ b/web/spec/features/lesson_booking_status_spec.rb @@ -36,6 +36,7 @@ describe "Lesson Booking Status page", :js => true, :type => :feature, :capybara find('h2', text: 'this lesson is coming up soon') + find('p.lesson-time', "will take place each") screenshot end