Skip to content

Commit

Permalink
fix(e2e): ensure waiting after click events
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Feb 28, 2024
1 parent 04e0fe5 commit 8f74446
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/metadata-editor-e2e/src/e2e/dashboard.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ describe('dashboard', () => {
originalFirstItem = list.trim()
// order by title descending
cy.get('.table-header-cell').eq(1).click()
cy.url().should('include', 'sort=resourceTitleObject.default.keyword')
cy.get('.table-header-cell').eq(1).click()
cy.url().should(
'include',
'sort=-resourceTitleObject.default.keyword'
)
cy.get('gn-ui-results-table')
.find('.table-row-cell')
.eq(1)
.invoke('text')
.then((list) => {
newFirstItem = list.trim()
expect(newFirstItem).not.to.equal(originalFirstItem)
cy.url().should(
'include',
'sort=-resourceTitleObject.default.keyword'
)
})
})
})
Expand Down

0 comments on commit 8f74446

Please sign in to comment.