Skip to content
Snippets Groups Projects
Commit 76a954ec authored by Ingrid Martinsheimen Egge's avatar Ingrid Martinsheimen Egge :cow2:
Browse files

package.json

parent 877cc8a5
No related branches found
No related tags found
1 merge request!21Merge profilinnstillinger into main
Pipeline #225332 passed
...@@ -3,6 +3,6 @@ const { defineConfig } = require('cypress') ...@@ -3,6 +3,6 @@ const { defineConfig } = require('cypress')
module.exports = defineConfig({ module.exports = defineConfig({
e2e: { e2e: {
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
baseUrl: 'http://localhost:5173' baseUrl: 'http://localhost:4173'
} }
}) })
describe('Correct navigation links', () => { describe('Correct navigation links', () => {
it("is sent to error page if page does not exist", () => {
cy.visit('/qwerty')
cy.contains('#msg', '404')
})
it("navigates to settings page", () => {
cy.visit('/')
cy.get('#settingsIcon').click()
cy.url().should('include', '/profileSettings')
})
/*TODO: Other pages*/
}) })
describe('Navbar on all pages', () => { describe('Navbar on all pages', () => {
it("front page has a navbar",()=> {
cy.visit('/')
cy.get('nav').should('exist')
})
it("settings page has a navbar",()=> {
cy.visit('/profileSettings')
cy.get('nav').should('exist')
})
/*TODO: other pages*/
}) })
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"@iconify/vue": "^4.1.1", "@iconify/vue": "^4.1.1",
"@pinia/testing": "^0.0.16",
"jwt-decode": "^3.1.2", "jwt-decode": "^3.1.2",
"pinia": "^2.0.35", "pinia": "^2.0.35",
"pinia-plugin-persistedstate": "^3.1.0", "pinia-plugin-persistedstate": "^3.1.0",
...@@ -17,7 +18,6 @@ ...@@ -17,7 +18,6 @@
"vue-router": "^4.1.6" "vue-router": "^4.1.6"
}, },
"devDependencies": { "devDependencies": {
"@pinia/testing": "^0.0.16",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue/test-utils": "^2.2.6", "@vue/test-utils": "^2.2.6",
"cypress": "^12.0.2", "cypress": "^12.0.2",
...@@ -689,7 +689,6 @@ ...@@ -689,7 +689,6 @@
"version": "0.0.16", "version": "0.0.16",
"resolved": "https://registry.npmjs.org/@pinia/testing/-/testing-0.0.16.tgz", "resolved": "https://registry.npmjs.org/@pinia/testing/-/testing-0.0.16.tgz",
"integrity": "sha512-oa5kO82hzWekqMq1HTnS/b+ZM+ZKEcEApuuCTelvKK79jTxg7P026Qw8/2RbVn5eUGAvRWQu4ubObrshVqCRjQ==", "integrity": "sha512-oa5kO82hzWekqMq1HTnS/b+ZM+ZKEcEApuuCTelvKK79jTxg7P026Qw8/2RbVn5eUGAvRWQu4ubObrshVqCRjQ==",
"dev": true,
"dependencies": { "dependencies": {
"vue-demi": "*" "vue-demi": "*"
}, },
...@@ -704,7 +703,6 @@ ...@@ -704,7 +703,6 @@
"version": "0.14.0", "version": "0.14.0",
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.0.tgz", "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.0.tgz",
"integrity": "sha512-gt58r2ogsNQeVoQ3EhoUAvUsH9xviydl0dWJj7dabBC/2L4uBId7ujtCwDRD0JhkGsV1i0CtfLAeyYKBht9oWg==", "integrity": "sha512-gt58r2ogsNQeVoQ3EhoUAvUsH9xviydl0dWJj7dabBC/2L4uBId7ujtCwDRD0JhkGsV1i0CtfLAeyYKBht9oWg==",
"dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"bin": { "bin": {
"vue-demi-fix": "bin/vue-demi-fix.js", "vue-demi-fix": "bin/vue-demi-fix.js",
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
}, },
"dependencies": { "dependencies": {
"@iconify/vue": "^4.1.1", "@iconify/vue": "^4.1.1",
"@pinia/testing": "^0.0.16",
"jwt-decode": "^3.1.2", "jwt-decode": "^3.1.2",
"pinia": "^2.0.35", "pinia": "^2.0.35",
"pinia-plugin-persistedstate": "^3.1.0", "pinia-plugin-persistedstate": "^3.1.0",
...@@ -20,7 +21,6 @@ ...@@ -20,7 +21,6 @@
"vue-router": "^4.1.6" "vue-router": "^4.1.6"
}, },
"devDependencies": { "devDependencies": {
"@pinia/testing": "^0.0.16",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue/test-utils": "^2.2.6", "@vue/test-utils": "^2.2.6",
"cypress": "^12.0.2", "cypress": "^12.0.2",
......
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