mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
Create e2e test for displaying all tags
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user