Skip to content

Commit

Permalink
fix: coments relationg to pullrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemisAaroe committed Oct 6, 2024
1 parent eb19654 commit da1ea32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions frontend/cypress/e2e/1-getting-started/pages/landingpage.cy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

const BASE_URL = "http://localhost:3000"
describe('Landing page', () => {
it('should load the landing page successfully', () => {
cy.visit('http://localhost:3000/');
cy.url().should("eq", "http://localhost:3000/")
cy.visit(BASE_URL + "/");
cy.url().should("eq", BASE_URL + "/")
});
});

describe("Make sure landing page is visitable/ displays data properly", () => {
beforeEach(() => {
cy.visit("http://localhost:3000/")
cy.visit(BASE_URL + "/")
})

it("test landingpage has navigation bar", () => {
Expand All @@ -26,25 +26,24 @@ describe("Make sure landing page is visitable/ displays data properly", () => {
})
});

//todo: update when navbar is made
describe("Make sure navbar on landing page get you to intended target", () => {
beforeEach(() => {
cy.visit("http://localhost:3000/")
cy.visit(BASE_URL + "/")
})

it("test før søknad", () => {
cy.contains("Før Søknad").click();
cy.url().should("eq", "http://localhost:3000/bygget")
cy.url().should("eq", BASE_URL +"/bygget")
})

it("test under søknad", () => {
cy.contains("Under Søknad").click();
cy.url().should("eq", "http://localhost:3000/soknad")
cy.url().should("eq", BASE_URL + "/soknad")
})

it("test Mottakskontroll", () => {
cy.contains("Mottakskontroll").click();
cy.url().should("eq", "http://localhost:3000/admin")
cy.url().should("eq", BASE_URL + "/admin")
})
})

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default async function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-center bg-white">
{/*
to be removed when navbar is added
TODO: remove when navbar is added
*/}
<div className="flex flex-row gap-4 top-0 fixed" >
<Link href={"/bygget"} className="bg-blue-500 rounded-xl p-4">
Expand Down

0 comments on commit da1ea32

Please sign in to comment.