Commit 36b0aaf1 authored by Marius Engen's avatar Marius Engen
Browse files

finished FR5

parent 4c50f3fc
Pipeline #167848 passed with stage
in 27 seconds
......@@ -6,21 +6,13 @@ describe("Integration test for FR5", () => {
it('Verify that public workout is visible for athlete', () => {
cy.visit('/workouts.html')
cy.contains("Public Workouts").click();
cy.get('#div-content').children().first().then((cont) => {
cy.get('#div-content').then((content)=>{
const id = content.children().first().attr('href').split("=")[1]
cy.intercept(`/api/workouts/${id}/`).as('workout')
cy.get('#div-content').children().first().click()
// Validate that the server responds with 200 OK
cy.wait('@workout').its('response.statusCode').should('eq',200)
cy.get('#inputName').should('exist')
cy.get('#inputDateTime').should('exist')
cy.get('#inputOwner').should('exist')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment