sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Quiz not available when adding the quiz block from the blocks inserter sidebar

Open m1r0 opened this issue 3 years ago • 0 comments
trafficstars

Related to https://github.com/Automattic/sensei/issues/5351

This bug breaks the quiz-lesson relation and is most likely caused by a logic that triggers a second save in the editor once the lesson is published.

Notes

I've noticed that once the publish button is clicked, another save is triggered (can be seen in the video below). The bug happens only when that double save is not triggered.

Steps to Reproduce

  1. Go to the Add New Lesson screen.
  2. Open the blocks sidebar by pressing the + button located on the top left.
  3. Select the quiz block.
  4. Fill in a valid question.
  5. Save the lesson.
  6. View the lesson in the front end.

What I Expected

I expected to see the "View Quiz" button and be able to access the quiz.

What Happened Instead

There is no "View Quiz" button.

PHP / WordPress / Sensei LMS version

PHP: 7.2 WordPress: 6.0.1 Sensei: 4.6.0

Browser / OS version

Browser: Chrome OS: MacOS

Screenshot / Video

https://user-images.githubusercontent.com/1612178/182249133-d15a7fb4-73b2-45c3-8418-7b5a44e19dba.mp4

Another video could be found in 5372276-zen.

m1r0 avatar Aug 01 '22 21:08 m1r0