Create e2e test for displaying all tags

This commit is contained in:
Amanda Hämynen
2026-03-18 12:11:29 +02:00
parent c4de7d5dd1
commit bbc5073fa6
@@ -51,17 +51,22 @@ describe('Student tag page', () => {
.should('include.text', 'Brand New Group') .should('include.text', 'Brand New Group')
.should('include.text', 'testertester3') .should('include.text', 'testertester3')
cy.get('.registration-details-container').should('exist') cy.get('.registration-details-container').should('exist')
})
it('student tag page opens', () => {
cy.get('#hamburger-menu-button') cy.get('#hamburger-menu-button')
.click() .click()
.then(() => { .then(() => {
cy.contains('Tags').click() cy.contains('Tags').click()
}) })
})
it('student tag page opens', () => {
cy.contains('Tags').should('exist') cy.contains('Tags').should('exist')
}) })
it('student can see all available tags', () => {
cy.contains('Coding').should('exist')
cy.contains('Meeting').should('exist')
})
after(() => { after(() => {
cy.deleteAllGroups() cy.deleteAllGroups()
cy.deleteAllTags() cy.deleteAllTags()