Skip to content

Commit

Permalink
Merge pull request #92 from FINTLabs/FKS-826-frontend-Fiks-feilende-t…
Browse files Browse the repository at this point in the history
…ester-p-KontrollAdmin-og-NyTildeling

FKS-826-frontend-Fiks-feilende-tester-p-KontrollAdmin-og-NyTildeling
  • Loading branch information
Christian-R-Haugland authored May 23, 2024
2 parents 4b1f2b1 + f19ca7f commit f9ec82b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/ressurser/nyTildeling.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('See that assignment.resource.$id.user renders with users', () => {
it('Verify that data from resource loads, and that headings and toolbar loads', () => {
cy.get("h2").should('have.text', "Creative Cloud All Apps for K-12 - User License")

cy.get("a").contains("Brukere").should('be.visible')
cy.get("a").contains("Grupper").should('be.visible')
cy.get("a").contains("Brukere").should('exist')
cy.get("a").contains("Grupper").should('exist')

cy.get("#user-type-select").should('be.visible')

Expand Down
52 changes: 26 additions & 26 deletions cypress/mocks/handlers/kontrollAdminHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ export const kontrollAdminHandlers = [
const page = new URL(request.url).searchParams.get('page') ?? "0"
const search = new URL(request.url).searchParams.get('search') ?? ""
const orgUnits = new URL(request.url).searchParams.get('orgUnits') ?? []
}),

http.get('http://localhost:53989/beta/fintlabs-no/api/accessmanagement/v1/feature', () => {
return HttpResponse.json(
[
{
"id": "1",
"name": "Alle brukere"
},
{
"id": "2",
"name": "En bruker"
},
{
"id": "3",
"name": "Grupper"
},
{
"id": "4",
"name": "En gruppe"
},
{
"id": "5",
"name": "Ressurser"
}
]
http.get('http://localhost:53989/beta/fintlabs-no/api/accessmanagement/v1/feature', () => {
return HttpResponse.json(
[
{
"id": "1",
"name": "Alle brukere"
},
{
"id": "2",
"name": "En bruker"
},
{
"id": "3",
"name": "Grupper"
},
{
"id": "4",
"name": "En gruppe"
},
{
"id": "5",
"name": "Ressurser"
}
]

)
})
)
}),

http.get('http://localhost:53989/beta/fintlabs-no/api/accessmanagement/v1/accessrole', () => {
Expand Down

0 comments on commit f9ec82b

Please sign in to comment.