Skip to content

Commit dbb7ebe

Browse files
author
Kyle
committed
Set stream_id in multi-session E2E test for SpikeGLX (neuroconv 0.9.x)
1 parent 5f2274b commit dbb7ebe

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/e2e/workflow.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,21 @@ export default async function runWorkflow(name, workflow, identifier) {
322322

323323
test('Review source data information', async () => {
324324

325+
// Set stream_id for SpikeGLX interfaces (required in neuroconv >= 0.9.0)
326+
await evaluate(async () => {
327+
const dashboard = document.querySelector('nwb-dashboard')
328+
const page = dashboard.page
329+
for (const { form } of Object.values(page.forms)) {
330+
const accordions = form.accordions
331+
for (const [name, accordion] of Object.entries(accordions)) {
332+
if (name.includes('SpikeGLX') && name.includes('Recording')) {
333+
const streamInput = form.forms[name]?.getFormElement(['stream_id'])
334+
if (streamInput) streamInput.updateData('imec0.ap')
335+
}
336+
}
337+
}
338+
})
339+
325340
await takeScreenshot(join(identifier, 'sourcedata-page'), 100)
326341
await toNextPage('metadata')
327342

0 commit comments

Comments
 (0)