Skip to content

Widget match returning wrong order of widgets

🐜 Bug report

Widget Match function returns wrong question widget for a given question type 🔧

What is the expected behaviour?

GIVEN I create a Quad question
AND I go on the preview of that question
THEN I should see the Quad Question widget with the four provided answers

What is the actual behaviour?

GIVEN I create a Quad question
AND I go on the preview of that question
THEN I see the fallback question widget

Steps to Reproduce

Example:

  1. Create a new Quad Question, or find an existing one
  2. Click on the preview of that question (click on pencil icon)
  3. You should see the wrong question preview

Screenshots

image

Files

  • widgets.service.ts