Add button_layout
parameter to support CSS grid
#1287
Annotations
4 errors
image-button-response › displays image stimulus and buttons:
packages/plugin-image-button-response/src/index.spec.ts#L19
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `image-button-response displays image stimulus and buttons 1`
- Snapshot - 1
+ Received + 1
- "<img src="../media/blue.png" id="jspsych-image-button-response-stimulus"><div id="jspsych-image-button-response-btngroup" style="display: flex; justify-content: center; gap: 0px 8px; padding: 0px 8px;"><button class="jspsych-btn" data-choice="0">button-choice</button></div>"
+ "<img src="../media/blue.png" id="jspsych-image-button-response-stimulus"><div id="jspsych-images-button-response-btngroup" class="jspsych-btn-group-grid" style="grid-template-columns: repeat(1, 1fr); grid-template-rows: repeat(1, 1fr);"><button class="jspsych-btn" data-choice="0">button-choice</button></div>"
at Object.<anonymous> (src/index.spec.ts:19:1)
|
image-button-response simulation › visual mode works:
packages/jspsych/src/modules/plugin-api/SimulationAPI.ts#L52
TypeError: Cannot read properties of null (reading 'dispatchEvent')
at target (../jspsych/src/modules/plugin-api/SimulationAPI.ts:52:1)
at callTimer (../../node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:745:24)
at Object.next (../../node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1427:17)
at Object.runAll (../../node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1486:23)
at FakeTimers.runAllTimers (../../node_modules/@jest/fake-timers/build/modernFakeTimers.js:50:19)
at Object.<anonymous> (src/index.spec.ts:180:1)
|
html-button-response › displays html stimulus and buttons:
packages/plugin-html-button-response/src/index.spec.ts#L17
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `html-button-response displays html stimulus and buttons 1`
- Snapshot - 1
+ Received + 1
- "<div id="jspsych-html-button-response-stimulus">this is html</div><div id="jspsych-html-button-response-btngroup" style="display: flex; justify-content: center; gap: 0px 8px; padding: 0px 8px;"><button class="jspsych-btn" data-choice="0">button-choice</button></div>"
+ "<div id="jspsych-html-button-response-stimulus">this is html</div><div id="jspsych-html-button-response-btngroup" class="jspsych-btn-group-grid" style="grid-template-columns: repeat(1, 1fr); grid-template-rows: repeat(1, 1fr);"><button class="jspsych-btn" data-choice="0">button-choice</button></div>"
at Object.<anonymous> (src/index.spec.ts:17:1)
|
Build, lint, and test on Node.js 18
Process completed with exit code 1.
|