fix management test failing due to hidden button

This commit is contained in:
Michael Shamoon 2022-05-03 13:14:19 -07:00
parent b5f95a351c
commit 7e271129c7

View File

@ -26,7 +26,7 @@ describe('manage', () => {
req.reply({ count: 3, next: null, previous: null, results: [] }) req.reply({ count: 3, next: null, previous: null, results: [] })
}) })
cy.visit('/tags') cy.visit('/tags')
cy.get('tbody').find('button').contains('Documents').first().click() // id = 4 cy.get('tbody').find('button:visible').contains('Documents').first().click() // id = 4
cy.contains('3 documents') cy.contains('3 documents')
}) })
}) })