Skip to content

Commit e154d5e

Browse files
committed
fix flaky test
1 parent ceecba1 commit e154d5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/component/sections/dataset/useCheckPublishCompleted.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ describe('useCheckPublishCompleted Hook', () => {
107107
// Polling waits 2s to fire, then the follow-up lock check waits another 2s.
108108
cy.tick(4_000)
109109

110-
cy.get('[data-testid="publish-completed"]').should('have.text', 'true')
111110
cy.wrap(getLocksStub).should('have.been.calledTwice')
111+
cy.get('[data-testid="publish-completed"]').should('have.text', 'true')
112112
cy.get('@setNeedsUpdate').should('have.been.calledOnceWith', true)
113113
})
114114
})

0 commit comments

Comments
 (0)