Skip to content

Commit

Permalink
Merge pull request #6427 from TheThingsNetwork/fix/middleware-error
Browse files Browse the repository at this point in the history
Fix middleware error
  • Loading branch information
ryaplots authored Aug 2, 2023
2 parents 7819785 + 7e57bf8 commit b69f9d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cypress/e2e/console/shared/collaborators/add.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('Collaborators', () => {
'eq',
`${Cypress.config('consoleRootPath')}/applications/${applicationId}/collaborators`,
)
cy.findByText(collaboratorId).should('be.visible')
})

it('succeeds adding organization as a collaborator', () => {
Expand All @@ -85,6 +86,7 @@ describe('Collaborators', () => {
'eq',
`${Cypress.config('consoleRootPath')}/applications/${applicationId}/collaborators`,
)
cy.findByText(organizationId).should('be.visible')
})
})

Expand All @@ -111,6 +113,7 @@ describe('Collaborators', () => {
'eq',
`${Cypress.config('consoleRootPath')}/gateways/${gatewayId}/collaborators`,
)
cy.findByText(collaboratorId).should('be.visible')
})

it('succeeds adding organization as a collaborator', () => {
Expand All @@ -124,6 +127,7 @@ describe('Collaborators', () => {
'eq',
`${Cypress.config('consoleRootPath')}/gateways/${gatewayId}/collaborators`,
)
cy.findByText(organizationId).should('be.visible')
})
})

Expand Down Expand Up @@ -152,6 +156,7 @@ describe('Collaborators', () => {
'eq',
`${Cypress.config('consoleRootPath')}/organizations/${testOrgId}/collaborators`,
)
cy.findByText(collaboratorId).should('be.visible')
})

it('fails adding organization as a collaborator', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { getCollaboratorsList } from '@ttn-lw/lib/store/actions/collaborators'
const OrganizationCollaboratorsList = () => {
const { orgId } = useParams()
const getItemsAction = useCallback(
() => filters => getCollaboratorsList('organization', orgId, filters),
filters => getCollaboratorsList('organization', orgId, filters),
[orgId],
)

Expand Down

0 comments on commit b69f9d2

Please sign in to comment.