Skip to content
Snippets Groups Projects
Commit f229ca8f authored by Endre Braut Medhus's avatar Endre Braut Medhus
Browse files

Add accidentally removed tests

parent c410b893
No related branches found
No related tags found
1 merge request!7Refactor/scripts/myathletes.js
Pipeline #127025 failed
......@@ -381,6 +381,25 @@ describe('profilepage', () => {
cy.get("#bio").should("have.value", bio2)
})
it('go to profile from workout', () => {
cy.visit(`/workout.html?id=${workoutId2}`)
cy.wait('@populateWorkout')
cy.get('#inputOwner').should("have.value", username2)
cy.get('#inputOwner').click()
cy.get("#username").should("have.value", username2)
cy.get("#birthday").should("have.value", birthday2)
cy.get("#favoriteExercise").should("have.value", favoriteExercise2)
cy.get("#bio").should("have.value", bio2)
})
it('go to profile with button', () => {
cy.get('#btn-username').click()
cy.get("#username").should("have.value", username1)
cy.get("#birthday").should("have.value", birthday1)
cy.get("#favoriteExercise").should("have.value", favoriteExercise1)
cy.get("#bio").should("have.value", bio1)
}
it('visit my athletes', () => {
cy.visit('/myathletes.html')
cy.get(`#tab-${username2}`).click()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment