Update e2e tests and n8n node for the portal
Follow the new domain model in tests: drop organization profile assertions, add a trust center profile test, and hit the dedicated HTTPS listener with SNI for the visitor API. Mirror the custom link rename and profile field moves in the n8n node operations. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -49,59 +49,6 @@ export const description: INodeProperties[] = [
|
||||
default: '',
|
||||
description: 'The name of the organization',
|
||||
},
|
||||
{
|
||||
displayName: 'Description',
|
||||
name: 'description',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['organization'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The description of the organization',
|
||||
},
|
||||
{
|
||||
displayName: 'Website URL',
|
||||
name: 'websiteUrl',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['organization'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The website URL of the organization',
|
||||
},
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
placeholder: 'name@example.com',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['organization'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The email address of the organization',
|
||||
},
|
||||
{
|
||||
displayName: 'Headquarter Address',
|
||||
name: 'headquarterAddress',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['organization'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The headquarter address of the organization',
|
||||
},
|
||||
];
|
||||
|
||||
export async function execute(
|
||||
@@ -110,10 +57,6 @@ export async function execute(
|
||||
): Promise<INodeExecutionData> {
|
||||
const organizationId = this.getNodeParameter('organizationId', itemIndex) as string;
|
||||
const name = this.getNodeParameter('name', itemIndex, '') as string;
|
||||
const description = this.getNodeParameter('description', itemIndex, '') as string;
|
||||
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
|
||||
const email = this.getNodeParameter('email', itemIndex, '') as string;
|
||||
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
|
||||
|
||||
const query = `
|
||||
mutation UpdateOrganization($input: UpdateOrganizationInput!) {
|
||||
@@ -121,10 +64,6 @@ export async function execute(
|
||||
organization {
|
||||
id
|
||||
name
|
||||
description
|
||||
websiteUrl
|
||||
email
|
||||
headquarterAddress
|
||||
logo {
|
||||
id
|
||||
fileName
|
||||
@@ -144,10 +83,6 @@ export async function execute(
|
||||
|
||||
const input: Record<string, string> = { organizationId };
|
||||
if (name) input.name = name;
|
||||
if (description) input.description = description;
|
||||
if (websiteUrl) input.websiteUrl = websiteUrl;
|
||||
if (email) input.email = email;
|
||||
if (headquarterAddress) input.headquarterAddress = headquarterAddress;
|
||||
|
||||
const responseData = await proboConnectApiRequest.call(this, query, { input });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user