Skip to content

Commit

Permalink
test: add GapMatch story to item-show-correct-response component for …
Browse files Browse the repository at this point in the history
…interaction validation
  • Loading branch information
Marcelh1983 committed Feb 13, 2025
1 parent 237eba5 commit 4fd1ea6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import meta, {
SelectPoint as SelectPointStory,
SelectPointMultipleNoAreaMapping as SelectPointMultipleNoAreaMappingStory,
GraphicOrder as GraphicOrderStory,
GapMatch as GapMatchStory,
GraphicAssociate as GraphicAssociateStory
} from './item-show-correct-response.stories';

Expand All @@ -26,6 +27,7 @@ const selectPointStory = composeStory(SelectPointStory, meta);
const selectPointMultipleNoAreaMappingStory = composeStory(SelectPointMultipleNoAreaMappingStory, meta);
const graphicOrderStory = composeStory(GraphicOrderStory, meta);
const graphicAssociateStory = composeStory(GraphicAssociateStory, meta);
const gapMatchStory = composeStory(GapMatchStory, meta);

// Helper function to resolve loaders and render story
async function setupStory(story, canvasElement) {
Expand Down Expand Up @@ -89,4 +91,9 @@ describe.sequential('ItemShowCorrectResponse Suite', () => {
await setupStory(GraphicAssociateStory, canvasElement);
await graphicAssociateStory.play({ canvasElement });
});

test('show correct response - GapMatch', async () => {
await setupStory(GapMatchStory, canvasElement);
await gapMatchStory.play({ canvasElement });
});
});

0 comments on commit 4fd1ea6

Please sign in to comment.