Skip to content

Commit

Permalink
added e2e test for 'loads graph when switching between workflows'
Browse files Browse the repository at this point in the history
  • Loading branch information
markgrahamdawson committed Apr 25, 2024
1 parent ceecb61 commit 3c06b60
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/e2e/specs/graph.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,28 @@ describe('Graph View', () => {
.should('be.visible')
})

it('loads graph when switching between workflows', () => {
cy.visit('/#/workspace/one')
addView('Graph')
waitForGraphLayout()
cy.visit('/#/workspace/other/multi/run2')
addView('Graph')
waitForGraphLayout()
cy
// there should be 2 graph nodes (all on-screen)
.get('.c-graph:first')
.find('.graph-node-container')
.should('be.visible')
.should('have.length', 2)
cy.visit('/#/workspace/one')
cy
// there should be 7 graph nodes (all on-screen)
.get('.c-graph:first')
.find('.graph-node-container')
.should('be.visible')
.should('have.length', 7)
})

it('remembers autorefresh setting when switching between workflows', () => {
cy.visit('/#/workspace/one')
addView('Graph')
Expand Down

0 comments on commit 3c06b60

Please sign in to comment.