Commit 2422b5ab authored by Kevin Mentzoni Halvarsson's avatar Kevin Mentzoni Halvarsson
Browse files

Changed all paths in the cypress file to only include relative paths

parent 41f73b1b
Pipeline #116234 passed with stages
in 1 minute and 20 seconds
......@@ -16,8 +16,7 @@ function uuidv4() {
describe('Register', () => {
it("Loads register page", () => {
cy.visit('http://localhost:9090/register.html');
console.log(inputs);
cy.visit('/register.html');
});
inputs.forEach(tuple => {
......@@ -32,12 +31,12 @@ describe('Register', () => {
/**
* A user is technically successfully registered if they get a user with that username already exists
*/
cy.visit("http://localhost:9090/register.html");
cy.visit("/register.html");
register({username: tuple[0], password: tuple[1], password1: tuple[2]}, []);
})
}else{
it("It fails in registering with invalid credentials", () => {
cy.visit("http://localhost:9090/register.html");
cy.visit("/register.html");
register({username: tuple[0], password: tuple[1], password1: tuple[2]}, messages);
})
}
......@@ -72,7 +71,5 @@ describe('Register', () => {
} else{
cy.location('pathname').should('eq', '/workouts.html');
}
}
})
\ No newline at end of file
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