Skip to content
Snippets Groups Projects
Verified Commit ca560c5a authored by Jakob Moser's avatar Jakob Moser
Browse files

Add basic frontend tests using Cypress

parent 10e8acb6
No related branches found
No related tags found
No related merge requests found
const { defineConfig } = require("cypress")
module.exports = defineConfig({
e2e: {
// The Portal application base url, see
// https://docs.cypress.io/guides/references/best-practices#Setting-a-Global-baseUrl
// We assume the server has already been started, see
// https://docs.cypress.io/guides/references/best-practices#Web-Servers
baseUrl: "http://127.0.0.1:5000",
},
})
describe("Fachschaftssitzung page", () => {
it("contains the word 'Tagesordnung'", () => {
cy.visit("/fachschaftssitzung")
cy.contains("Tagesordnung")
})
it("shows a generic text about editing today's protocol", () => {
cy.visit("/fachschaftssitzung")
cy.contains("Heutiges Protokoll bearbeiten")
})
})
describe("Main page", () => {
it("contains the word 'Meeting'", () => {
cy.visit("/")
cy.contains("Meeting")
})
})
// See https://on.cypress.io/custom-commands
// See https://on.cypress.io/configuration
import "./commands"
This diff is collapsed.
{
"name": "portal",
"version": "0.0.0",
"scripts": {
"test": "npx cypress run"
},
"devDependencies": {
"cypress": "^13.15.0"
},
"repository": {
"type": "git",
"url": "git@gitlab.cl.uni-heidelberg.de:fachschaft/portal.git"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment