Skip to content

Commit

Permalink
Add additional assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed May 28, 2024
1 parent b2a3627 commit 06cdfab
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tests/e2e/pipelines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))


Expand Down

0 comments on commit 06cdfab

Please sign in to comment.