Skip to content

Commit

Permalink
review amends
Browse files Browse the repository at this point in the history
  • Loading branch information
markgrahamdawson committed Apr 10, 2024
1 parent a852f23 commit 0fd7c99
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions tests/e2e/specs/analysis.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,19 +292,18 @@ describe('Filters and Options save state', () => {
.should('be.visible')
})
})

describe('Filters save state', () => {
it('remembers task name, platform and timings when switching between workflows', () => {
cy.visit('/#/workspace/one')
addView('Analysis')

// Check default options
cy
.get('.c-analysis table > tbody > tr')
.should('have.length', numTasks)
.should('be.visible')
cy
.get('td')
.contains('30')
.should('be.visible')

// Set platform filter options
cy
.get('#c-analysis-filter-task-platforms')
Expand All @@ -313,10 +312,12 @@ describe('Filters and Options save state', () => {
.get('.v-list-item')
.contains('platform_1')
.click({ force: true })

// Set queue task name filter options
cy
.get('#c-analysis-filter-task-name')
.type('wait')

// Set task times filter options
cy
.get('#c-analysis-filter-task-timings')
Expand All @@ -325,27 +326,14 @@ describe('Filters and Options save state', () => {
.get('.v-list-item')
.contains('Queue')
.click({ force: true })

// Navigate away
cy.visit('/#/')
cy.get('.c-dashboard')
// Navigate back
cy.visit('/#/workspace/one')
// Check name filter
cy
.get('td')
.contains('waiting')
.should('be.visible')
// Check timing filter
cy
.get('td')
.contains('00:00:12')
.should('be.visible')
// Check platform filter
cy
.get('td')
.contains('platform_1')
.should('be.visible')
// Other checks

// Check number of tasks
cy
.get('.c-analysis table > tbody > tr')
.should('have.length', 1)
Expand Down

0 comments on commit 0fd7c99

Please sign in to comment.