updated test script for home

This commit is contained in:
UtardaBest 2023-08-29 16:05:16 +08:00
parent 1e56842282
commit 3d82e00518
1 changed files with 10 additions and 0 deletions

View File

@ -52,4 +52,14 @@ describe('Homepage', () => {
.its('request.url')
.should('contain', 'limit=10&offset=10')
})
it('should display popular tags in home page', () => {
cy.visit(ROUTES.HOME)
cy.wait('@getTags')
cy.contains('Popular Tags')
.parent('.popular-tags')
.find('.tag-pill')
.should('have.length', 8)
})
})