Skip to content

Commit e1d2613

Browse files
wxtimoliver-sanders
authored andcommitted
added test
1 parent bc1d110 commit e1d2613

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/e2e/specs/gscan.cy.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,18 @@ describe('GScan component', () => {
192192
})
193193
})
194194

195+
describe('Task waiting badges', () => {
196+
it('displays retry and held icons', () => {
197+
cy.get('.c-gscan')
198+
.find('[data-node-name="one"]').as('parent')
199+
.find('.node:first .task-state-badge:first')
200+
.should('have.class', 'held')
201+
// child run2 contributes the running tasks
202+
cy.get('@parent').find('.node:first .task-state-badge:nth-child(2)')
203+
.should('have.class', 'retry')
204+
})
205+
})
206+
195207
describe('Warnings', () => {
196208
it('collates warnings up the tree', () => {
197209
// NOTE: Log events may be duplicated in offline-mode due to the way the

0 commit comments

Comments
 (0)