From 27a185564fababb5650d05290b8219c4088900de Mon Sep 17 00:00:00 2001 From: Darya Plotnytska Date: Wed, 2 Aug 2023 12:16:14 +0200 Subject: [PATCH 1/2] console: Fix middleware error --- .../console/views/organization-collaborators-list/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webui/console/views/organization-collaborators-list/index.js b/pkg/webui/console/views/organization-collaborators-list/index.js index ccbf915103..7ab95b5bb6 100644 --- a/pkg/webui/console/views/organization-collaborators-list/index.js +++ b/pkg/webui/console/views/organization-collaborators-list/index.js @@ -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], ) From 7e57bf8efccc7582ca7905bc55dea346e19a1a53 Mon Sep 17 00:00:00 2001 From: Darya Plotnytska Date: Wed, 2 Aug 2023 14:28:48 +0200 Subject: [PATCH 2/2] console: Update e2e tests --- cypress/e2e/console/shared/collaborators/add.spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cypress/e2e/console/shared/collaborators/add.spec.js b/cypress/e2e/console/shared/collaborators/add.spec.js index 9e4f199c6f..ee3ddb135c 100644 --- a/cypress/e2e/console/shared/collaborators/add.spec.js +++ b/cypress/e2e/console/shared/collaborators/add.spec.js @@ -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', () => { @@ -85,6 +86,7 @@ describe('Collaborators', () => { 'eq', `${Cypress.config('consoleRootPath')}/applications/${applicationId}/collaborators`, ) + cy.findByText(organizationId).should('be.visible') }) }) @@ -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', () => { @@ -124,6 +127,7 @@ describe('Collaborators', () => { 'eq', `${Cypress.config('consoleRootPath')}/gateways/${gatewayId}/collaborators`, ) + cy.findByText(organizationId).should('be.visible') }) }) @@ -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', () => {