From 06cdfab3deeb6e3a7c4353ea52833373b1ccaaf5 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Tue, 28 May 2024 14:06:55 -0700 Subject: [PATCH] Add additional assertion --- tests/e2e/pipelines.test.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/e2e/pipelines.test.ts b/tests/e2e/pipelines.test.ts index 3af1f614d..c441f8491 100644 --- a/tests/e2e/pipelines.test.ts +++ b/tests/e2e/pipelines.test.ts @@ -30,29 +30,35 @@ describe('Run example pipelines', () => { test('All example pipelines are created', async ( ) => { - await evaluate(async (testGINPath) => { + const result = await evaluate(async (testGINPath) => { // Transition to settings page const dashboard = document.querySelector('nwb-dashboard') dashboard.sidebar.select('settings') await new Promise(resolve => setTimeout(resolve, 200)) - // Generate example pipelines const page = dashboard.page - const folderInput = page.form.getFormElement(["developer", "testing_data_folder"]) - folderInput.updateData(testGINPath) - // Open relevant accordion const accordion = page.form.accordions['developer'] accordion.toggle(true) + + + // Generate example pipelines + const folderInput = page.form.getFormElement(["developer", "testing_data_folder"]) + folderInput.updateData(testGINPath) const button = folderInput.nextSibling await button.onClick() page.save() + + return true + }, testGINPath) + expect(result).toBe(true) + await takeScreenshot(join('test-pipelines', 'created'))