Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dolly frontend react hook form migration #3375

Merged
merged 84 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
b06de88
Begynt med migrering til react-hook-form
stigus Nov 10, 2023
be209b1
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 13, 2023
3256fd1
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 15, 2023
b509c07
Masse refaktorering fra formik til React-hook-forms
stigus Nov 15, 2023
f3a10b1
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 15, 2023
1c0d5ef
Masse refaktorering fra formik til React-hook-forms v2
stigus Nov 17, 2023
a9bc4af
Migrert Vite fra major versjon 4 til 5
stigus Nov 17, 2023
8a1c86d
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 17, 2023
fb627e9
Mindre refaktorering
stigus Nov 20, 2023
8db9264
Fjernet resterende knytninger til Formik
stigus Nov 20, 2023
476f8fd
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 20, 2023
90780cc
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 21, 2023
69be014
Fjernet siste rest av formik og fikset konflikter som oppstod, fortsa…
stigus Nov 21, 2023
2604fcc
En god del mer formik -> react-hook-form migrering og endret lodash i…
stigus Nov 22, 2023
2803272
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 22, 2023
16b4e3e
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 22, 2023
ccb55d8
Fikset mer på Form oppsett, endret en del av valideringen, lagt til n…
stigus Nov 23, 2023
637be6f
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Nov 23, 2023
a08dd54
Fikset mer på Form oppsett, endret mer av valideringen, oppdateringer…
stigus Nov 27, 2023
5484b79
Fikset mer på Form oppsett, endret mer av valideringen, oppdateringer…
stigus Nov 29, 2023
0d4133c
Gjort ferdig det meste av form for bestilling av ident, begynt på org…
stigus Dec 6, 2023
65697e8
Fikset testnorge oppsett for react-hook-form
stigus Dec 6, 2023
1653c8e
Fikset testnorge oppsett for react-hook-form og noe mindre oppdaterin…
stigus Dec 7, 2023
ada7b36
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Dec 7, 2023
87b1ed3
Merget med master
stigus Dec 7, 2023
5dcd95e
Fikset en del av bugs på miljøvelging og steg3 i bestilling. Organisa…
stigus Dec 11, 2023
16b5523
Fikset en del av bugs på miljøvelging og steg3 i bestilling. Organisa…
stigus Dec 11, 2023
fe9c54b
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Dec 11, 2023
5b70579
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Dec 11, 2023
e4b8f9b
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Dec 11, 2023
ebef41c
Fikset en del av valideringen og endret på SoekForm og det nye dollys…
stigus Dec 12, 2023
ad181ac
Fjernet alle this.options implementasjoner fra valideringen og endret…
stigus Dec 14, 2023
b4a7c06
Oppdatering
stigus Dec 15, 2023
ee261d9
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Dec 15, 2023
6a08fa3
En del mer bugfiksing og refaktorering for react-hook-forms
stigus Dec 18, 2023
d3b83a4
En del mer bugfiksing og refaktorering for react-hook-forms, mindre u…
stigus Dec 18, 2023
158eecb
- Fikset de resterende feilene som ble funnet på react-hook-forms og …
stigus Jan 2, 2024
f39c89b
- Fikset de resterende feilene som ble funnet på react-hook-forms og …
stigus Jan 2, 2024
872bb1f
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 2, 2024
d7e8917
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 3, 2024
a98c0bc
Lagt til test for FlyttPersoner og endret en god del på oppsett for C…
stigus Jan 4, 2024
afd1034
Fikset en del og skrevet om Cypress tester til å være mindre
stigus Jan 4, 2024
873f3ad
Refaktorert mye utdatert kode og endret oppsett for forms og tester
stigus Jan 5, 2024
f48a47b
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 5, 2024
08484cc
Fikset bug med Alder som ble vist som huket av på legg til/endre eksi…
stigus Jan 8, 2024
8ffc7b8
Fikset naviger til innlogging dersom brukeren har mistet gyldig session
stigus Jan 8, 2024
937cbb9
Fikset gjenopprett fra person bug
stigus Jan 8, 2024
1bbdc80
Fikset diverse bugs på Importering av Testnorge identer med påfølgend…
stigus Jan 8, 2024
4c39cfa
Enda mer bugfiksing for forms og designendringer
stigus Jan 9, 2024
33b56fb
Enda mer bugfiksing for forms og designendringer
stigus Jan 9, 2024
4596b9a
Enda mer bugfiksing for forms og designendringer
stigus Jan 9, 2024
3d0b974
Enda mer bugfiksing for forms og designendringer
stigus Jan 9, 2024
5712ba5
Flere cypress tester
stigus Jan 9, 2024
fac69a6
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 12, 2024
65476c3
Fikset en god del forms bugs og oppdatert react-toastify til v10
stigus Jan 15, 2024
1ca999e
Fikset flere forms bugs og oppdatert/refaktorert
stigus Jan 16, 2024
df5e804
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 16, 2024
8771bb7
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 16, 2024
b2fe20c
Diverse bugfix, inkludert ameldingform som tidvis satte fradato til 1…
stigus Jan 17, 2024
e7d4547
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 17, 2024
322d0f3
liten fix for lokalkjøring
stigus Jan 17, 2024
4825640
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 17, 2024
2346b2b
Deploy react-hook-forms to dev
stigus Jan 17, 2024
312e5d2
React hook forms select orgnr og inntektsaarForm fix
stigus Jan 18, 2024
774e56b
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 18, 2024
795173e
Mer bugfixing for react-hook-forms og oppdatering/refaktor
stigus Jan 19, 2024
5514a05
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 19, 2024
93f90d3
deploy frontend-dev etter merge
stigus Jan 19, 2024
08e0346
Endret på application-local
stigus Jan 22, 2024
9264dd2
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 22, 2024
3430eae
Siste finish på React hook forms bugfixing og oppdatering
stigus Jan 23, 2024
5c1a801
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 23, 2024
e41d25b
Fikset en god del sonar issues og mindre refaktorering av Flyttperson…
stigus Jan 24, 2024
7003e43
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Jan 24, 2024
d8c3766
Sonar fixes og update
stigus Jan 25, 2024
d7e5892
Updates
stigus Feb 15, 2024
2cfd802
Merge med master
stigus Feb 15, 2024
1ced827
Fikset en del feil etter merge-conflict og en del oppdateringer for r…
stigus Feb 15, 2024
928afc7
Fikset resterende feil som er oppdaget og oppdatert noen flere pakker
stigus Feb 16, 2024
7e8c6c1
Merge branch 'master' into feature/dolly-frontend-react-hook-form-mig…
stigus Feb 16, 2024
1dc28b6
Fikset resterende feil som er oppdaget og oppdatert noen flere pakker
stigus Feb 16, 2024
6e66a33
Tester cypress endring for raskere build time
stigus Feb 16, 2024
88921fe
Cypress endringer
stigus Feb 16, 2024
9f6090b
Cypress endringer
stigus Feb 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/common.cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://npm.pkg.github.com/
scope: "@navikt"
- name: "Run"
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
config: video=false
working-directory: ${{ inputs.working-directory }}/src/main/js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ private Function<PredicateSpec, Buildable<Route>> createRoute(String segment, St
.filters(filter, addUserJwtHeaderFilter())
).uri(host);
}
}
}
1 change: 1 addition & 0 deletions apps/dolly-frontend/src/main/js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ stats.json
# Cypress
/cypress/videos/
/cypress/screenshots/
/cypress/downloads/
1 change: 1 addition & 0 deletions apps/dolly-frontend/src/main/js/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineConfig({
},

e2e: {
baseUrl: 'http://localhost:5678',
setupNodeEvents() {},
experimentalRunAllSpecs: true,
specPattern: 'cypress/e2e/**/*.cy.{js,ts,jsx,tsx}',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { CypressSelector } from '../mocks/Selectors'

describe('Dolly Bestillingsdetaljer testing', () => {
it('passes', () => {
cy.visit('gruppe')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.TOGGLE_VISNING_BESTILLINGER).click()

cy.get(':nth-child(2) > .dot-body-row > .dot-body-row-columns').click()
cy.dollyGet(CypressSelector.BUTTON_BESTILLINGDETALJER_GJENOPPRETT).should('be.disabled')
cy.get(':nth-child(2) > .dot-body-row > .dot-body-row-columns').click()

cy.get(':nth-child(3) > .dot-body-row > .dot-body-row-columns').click()
cy.dollyGet(CypressSelector.BUTTON_BESTILLINGDETALJER_GJENOPPRETT).click()
cy.dollyGet(CypressSelector.BUTTON_BESTILLINGDETALJER_GJENOPPRETT_UTFOER).click()

cy.dollyGet(CypressSelector.BUTTON_BESTILLINGDETALJER_OPPRETT_MAL).click()
cy.get('#malnavn').type('Testmal')

cy.dollyGet(CypressSelector.BUTTON_MALMODAL_LAGRE).click()
})
})
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { CypressSelector } from '../mocks/Selectors'

describe('Dolly-søk testing', () => {
const dollySoekIdenter = new RegExp(/dolly-backend\/api\/v1\/elastic\/identer/)
it('passes', () => {
cy.visit('http://localhost:5678')
cy.visit('')

cy.dollyGet(CypressSelector.BUTTON_HEADER_FINNPERSON).click()
cy.dollyGet(CypressSelector.BUTTON_HEADER_DOLLYSOEK).click()
Expand All @@ -14,10 +15,13 @@ describe('Dolly-søk testing', () => {
cy.get('div').contains('Testytest').invoke('show').click()
cy.wait(1000)

cy.intercept({ method: 'POST', url: dollySoekIdenter }, [])
cy.dollyGet(CypressSelector.BUTTON_NULLSTILL_SOEK).click()
cy.get('div').contains('Ingen søk er gjort')
cy.wait(1000)

cy.intercept({ method: 'POST', url: dollySoekIdenter }, ['12345678912'])

cy.get('.select-kjoenn__control').click().get('.select-kjoenn__menu').click()
cy.wait(200)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CypressSelector } from '../mocks/Selectors'

describe('Navigering til endringsmelding', () => {
it('passes', () => {
cy.visit('http://localhost:5678/gruppe')
cy.visit('gruppe')

cy.dollyGet(CypressSelector.BUTTON_HEADER_ENDRINGSMELDING).click()
cy.url().should('include', '/endringsmelding')
Expand Down
34 changes: 2 additions & 32 deletions apps/dolly-frontend/src/main/js/cypress/e2e/Gruppe.cy.ts
Original file line number Diff line number Diff line change
@@ -1,47 +1,17 @@
import { CypressSelector } from '../mocks/Selectors'
import {
avbruttBestillingMock,
personFragmentNavigerMock,
uferdigBestillingMock,
uferdigeBestillingerMock,
} from '../mocks/BasicMocks'
import { ERROR_NAVIGATE_IDENT } from '../../src/ducks/errors/ErrorMessages'

const uferdigBestilling = new RegExp(/dolly-backend\/api\/v1\/bestilling\/2$/)
const uferdigeBestillinger = new RegExp(/dolly-backend\/api\/v1\/bestilling\/gruppe\/2\/ikkeferdig/)
const personFragmentNaviger = new RegExp(/dolly-backend\/api\/v1\/ident\/naviger\/12345678912/)

describe('Navigering, Opprett gruppe og start bestilling med alle mulige tilvalg', () => {
describe('Opprett gruppe og start bestilling med alle mulige tilvalg', () => {
it('passes', () => {
cy.visit('http://localhost:5678/gruppe')

//Midlertidig not found på navigering til ident etter søk
cy.intercept({ method: 'GET', url: personFragmentNaviger }, { statusCode: 404 })

cy.dollyType(CypressSelector.INPUT_DOLLY_SOEK, '12345')
cy.dollyGet(CypressSelector.BUTTON_NAVIGER_DOLLY).click()
cy.wait(400)

cy.dollyGet(CypressSelector.ERROR_MESSAGE_NAVIGERING).should(
'contains.text',
ERROR_NAVIGATE_IDENT,
)

//Korrekt navigering igjen
cy.intercept({ method: 'GET', url: personFragmentNaviger }, personFragmentNavigerMock)

cy.dollyGet(CypressSelector.TOGGLE_SEARCH_BESTILLING).click()
cy.dollyType(CypressSelector.INPUT_DOLLY_SOEK, '1')
cy.dollyGet(CypressSelector.BUTTON_NAVIGER_DOLLY).click()
cy.dollyGet(CypressSelector.TOGGLE_SEARCH_PERSON).click()

cy.dollyType(CypressSelector.INPUT_DOLLY_SOEK, '12345')
cy.dollyGet(CypressSelector.BUTTON_NAVIGER_DOLLY).click()
cy.wait(400)

cy.url().should('include', '/gruppe/1')

cy.dollyGet(CypressSelector.BUTTON_HEADER_PERSONER).click()
cy.visit('gruppe')

// Naviger mellom tabs
cy.dollyGet(CypressSelector.TOGGLE_FAVORITTER).click()
Expand Down
83 changes: 83 additions & 0 deletions apps/dolly-frontend/src/main/js/cypress/e2e/GruppeHeader.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import { CypressSelector } from '../mocks/Selectors'

describe('Testing av forskjellige actions på gruppeheaderen', () => {
it('Legg til på alle i gruppe', () => {
cy.visit('gruppe')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.BUTTON_LEGGTILPAAALLE).click()

cy.dollyGet(CypressSelector.BUTTON_VIDERE).click()

cy.dollyGet(CypressSelector.BUTTON_VIDERE).click()

cy.dollyGet(CypressSelector.BUTTON_FULLFOER_BESTILLING).click()
})

const tagsPost = new RegExp(/dolly-backend\/api\/v1\/tags/)
it('Posting av tags', () => {
cy.visit('gruppe')
cy.intercept({ method: 'POST', url: tagsPost }, { statusCode: 201 }).as('postTags')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.BUTTON_TILKNYTT_TAGS).click()
cy.get('.select__input-container').type('DUMMY{enter}')

cy.dollyGet(CypressSelector.BUTTON_POST_TAGS).click()

cy.wait('@postTags').its('response.statusCode').should('eq', 201)

cy.get('h1').contains('Testytest')
})

it('Flyttpersoner funksjonalitet', () => {
cy.visit('gruppe')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.BUTTON_FLYTT_PERSONER).click()

cy.dollyGet(CypressSelector.TOGGLE_ALLE_GRUPPER).click()
cy.dollyGet(CypressSelector.TOGGLE_EKSISTERENDE_GRUPPE).click()
cy.dollyGet(CypressSelector.TOGGLE_NY_GRUPPE).click()

cy.dollyGet(CypressSelector.INPUT_NY_GRUPPE_NAVN).type('TestNavn')
cy.dollyGet(CypressSelector.INPUT_NY_GRUPPE_HENSIKT).type('TestHensikt')
cy.dollyGet(CypressSelector.BUTTON_NY_GRUPPE_OPPRETT).click()

cy.get('.navds-checkbox__label').contains('12345678912').click()

cy.dollyGet(CypressSelector.CONTAINER_VALGTE_PERSONER).should('contain', '12345678912')
cy.dollyGet(CypressSelector.BUTTON_FLYTT_PERSONER_NULLSTILL).click()
cy.dollyGet(CypressSelector.CONTAINER_VALGTE_PERSONER).should('not.contain', '12345678912')

cy.dollyGet(CypressSelector.BUTTON_FLYTT_PERSONER_AVBRYT).click()
})

it('Gjenopprett gruppe funksjonalitet', () => {
cy.visit('gruppe')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.BUTTON_GJENOPPRETT_GRUPPE).click()

cy.get('#q2').click()

cy.dollyGet(CypressSelector.BUTTON_BESTILLINGDETALJER_GJENOPPRETT_UTFOER).click()
})

it('Rediger gruppe funksjonalitet', () => {
cy.visit('gruppe')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.BUTTON_REDIGER_GRUPPE).click()

cy.dollyGet(CypressSelector.INPUT_NAVN).clear().type('Redigert navn')
cy.dollyGet(CypressSelector.INPUT_HENSIKT).clear().type('Redigert hensikt')

cy.dollyGet(CypressSelector.BUTTON_OPPRETT).click()
})
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { CypressSelector } from '../mocks/Selectors'
import { personFragmentNavigerMock } from '../mocks/BasicMocks'
import { ERROR_NAVIGATE_IDENT } from '../../src/ducks/errors/ErrorMessages'

const personFragmentNaviger = new RegExp(/dolly-backend\/api\/v1\/ident\/naviger\/12345678912/)

describe('Navigering til ident som finnes i gruppe 1', () => {
it('passes', () => {
cy.visit('gruppe')

//Midlertidig not found på navigering til ident etter søk
cy.intercept({ method: 'GET', url: personFragmentNaviger }, { statusCode: 404 })

cy.dollyType(CypressSelector.INPUT_DOLLY_SOEK, '12345')
cy.dollyGet(CypressSelector.BUTTON_NAVIGER_DOLLY).click()
cy.wait(400)

cy.dollyGet(CypressSelector.ERROR_MESSAGE_NAVIGERING).should(
'contains.text',
ERROR_NAVIGATE_IDENT,
)

//Korrekt navigering igjen
cy.intercept({ method: 'GET', url: personFragmentNaviger }, personFragmentNavigerMock)

cy.dollyGet(CypressSelector.TOGGLE_SEARCH_BESTILLING).click()
cy.dollyType(CypressSelector.INPUT_DOLLY_SOEK, '1')
cy.dollyGet(CypressSelector.BUTTON_NAVIGER_DOLLY).click()
cy.dollyGet(CypressSelector.TOGGLE_SEARCH_PERSON).click()

cy.dollyType(CypressSelector.INPUT_DOLLY_SOEK, '12345')
cy.dollyGet(CypressSelector.BUTTON_NAVIGER_DOLLY).click()
cy.wait(400)

cy.url().should('include', '/gruppe/1')
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@ describe('Åpne bestilt ident med knytning mot alle fagsystem', () => {
it('passes', () => {
cy.intercept('PUT', '*', cy.spy().as('toggle_brukt'))

cy.visit('http://localhost:5678/gruppe')
cy.visit('gruppe')

cy.get('div').contains('Testytest').click()

cy.dollyGet(CypressSelector.BUTTON_FLYTT_PERSONER).click()

cy.dollyGet(CypressSelector.TOGGLE_NY_GRUPPE).click()
cy.dollyGet(CypressSelector.TOGGLE_EKSISTERENDE_GRUPPE).click()

cy.dollyGet(CypressSelector.BUTTON_FLYTT_PERSONER_AVBRYT).click()

cy.dollyGet(CypressSelector.TOGGLE_VISNING_BESTILLINGER).click()
cy.wait(200)

Expand Down
4 changes: 2 additions & 2 deletions apps/dolly-frontend/src/main/js/cypress/e2e/Login.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ describe('Login side og aksepter varsling', () => {
it('passes', () => {
cy.intercept(
{ method: 'GET', url: new RegExp(/testnav-varslinger-service\/api\/v1\/varslinger/) },
varslingerVelkommenResponseMock
varslingerVelkommenResponseMock,
)
cy.visit('http://localhost:5678/login')
cy.visit('login')

cy.dollyGet(CypressSelector.BUTTON_LOGIN_NAV).click()
cy.dollyGet(CypressSelector.BUTTON_VARSLING_LUKK).click()
Expand Down
2 changes: 1 addition & 1 deletion apps/dolly-frontend/src/main/js/cypress/e2e/Logout.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Tester at bruker blir sendt til login side dersom man ikke er autorise
it('passes', () => {
const current = new RegExp(/current/)
cy.intercept({ method: 'GET', url: current }, { statusCode: 401 })
cy.visit('http://localhost:5678/gruppe', { failOnStatusCode: false })
cy.visit('gruppe', { failOnStatusCode: false })

cy.url().should('include', 'login')
cy.dollyGet(CypressSelector.BUTTON_LOGIN_NAV).should('exist')
Expand Down
5 changes: 4 additions & 1 deletion apps/dolly-frontend/src/main/js/cypress/e2e/Minside.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Minside mal testing', () => {
cy.intercept('PUT', '*', cy.spy().as('endre_malnavn'))
cy.intercept('POST', '*', cy.spy().as('send_oenske'))

cy.visit('http://localhost:5678')
cy.visit('')

cy.dollyGet(CypressSelector.BUTTON_PROFIL).click()
cy.dollyGet(CypressSelector.BUTTON_PROFIL_MINSIDE).click()
Expand All @@ -28,6 +28,9 @@ describe('Minside mal testing', () => {

cy.dollyGet(CypressSelector.INPUT_MINSIDE_SOEK_MAL).type('mal')
cy.dollyGet(CypressSelector.INPUT_MINSIDE_SOEK_MAL).clear()

cy.dollyGet(CypressSelector.TOGGLE_MIN_SIDE_ORGANISASJON_MALER).click()
cy.dollyGet(CypressSelector.TOGGLE_MIN_SIDE_PERSONER_MALER).click()
cy.dollyGet(CypressSelector.BUTTON_MALER_SLETT).click()
cy.dollyGet(CypressSelector.BUTTON_MALER_SLETT_BEKREFT).click()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CypressSelector } from '../mocks/Selectors'

describe('Oppretter bestilling med alle artifakter som er avhengige av Q1 eller Q2 og sjekker at disse blir huket av', () => {
it('passes', () => {
cy.visit('http://localhost:5678/gruppe/1')
cy.visit('gruppe/1')

cy.dollyGet(CypressSelector.BUTTON_OPPRETT_PERSONER).click()
cy.dollyGet(CypressSelector.BUTTON_START_BESTILLING).click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CypressSelector } from '../mocks/Selectors'

describe('Åpne en organisasjon med alle tilvalg', () => {
it('passes', () => {
cy.visit('http://localhost:5678')
cy.visit('')

cy.dollyGet(CypressSelector.BUTTON_HEADER_ORGANISASJONER).click()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CypressSelector } from '../mocks/Selectors'

describe('Test-Norge søk testing', () => {
it('passes', () => {
cy.visit('http://localhost:5678')
cy.visit('')

cy.dollyGet(CypressSelector.BUTTON_HEADER_FINNPERSON).click()
cy.dollyGet(CypressSelector.BUTTON_HEADER_TESTNORGE).click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,8 @@ export const pensjonMock = [

export const pensjonTpMock = [{ ordning: '4095' }, { ordning: '3010' }]

export const tagsMock = [{ tag: 'DUMMY', beskrivelse: 'Dummy' }]

export const kontoregisterMock = {
kontohaver: '12345678912',
kontonummer: '99999999999',
Expand Down
Loading
Loading