first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,71 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
object: 'page',
id: '15bfb9cb-4cf0-81c7-aab4-c5855b8cb6c3',
created_time: '2024-12-13T04:45:00.000Z',
last_edited_time: '2024-12-13T05:52:00.000Z',
created_by: {
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
},
last_edited_by: {
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
},
cover: null,
icon: {
type: 'emoji',
emoji: '😗',
},
parent: {
type: 'database_id',
database_id: '138fb9cb-4cf0-804c-8663-d8ecdd5e692f',
},
archived: true,
in_trash: true,
properties: {
Tags: {
id: '%40~Tp',
type: 'multi_select',
multi_select: [],
},
Name: {
id: 'title',
type: 'title',
title: [
{
type: 'text',
text: {
content: 'Updated Name',
link: null,
},
annotations: {
bold: false,
italic: false,
strikethrough: false,
underline: false,
code: false,
color: 'default',
},
plain_text: 'Updated Name',
href: null,
},
],
},
},
url: 'https://www.notion.so/Updated-Name-15bfb9cb4cf081c7aab4c5855b8cb6c3',
public_url: null,
request_id: 'ce91abaa-261f-43c3-9237-57c0f28af682',
};
describe('Test NotionV2, page => archive', () => {
nock('https://api.notion.com')
.patch('/v1/pages/15bfb9cb4cf081c7aab4c5855b8cb6c3', { archived: true })
.reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['archive.workflow.json'],
});
});
@@ -0,0 +1,90 @@
{
"name": "tests notion",
"nodes": [
{
"parameters": {},
"id": "4260fdbd-e92f-4712-8114-38b85f8289ea",
"name": "When clicking Execute workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"operation": "archive",
"pageId": {
"__rl": true,
"value": "15bfb9cb4cf081c7aab4c5855b8cb6c3",
"mode": "id"
}
},
"id": "5ab80e6a-c9c4-4cc5-9332-2fc7a3f8ae24",
"name": "Notion",
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [1040, 360],
"credentials": {
"notionApi": {
"id": "CiZXWkDmjiZzpcL1",
"name": "Notion account"
}
}
},
{
"parameters": {},
"id": "a664f506-72a5-4e50-80b4-97ed2e6eb334",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"id": "15bfb9cb-4cf0-81c7-aab4-c5855b8cb6c3",
"name": "Updated Name",
"url": "https://www.notion.so/Updated-Name-15bfb9cb4cf081c7aab4c5855b8cb6c3",
"property_tags": [],
"property_name": "Updated Name"
}
}
]
},
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Notion",
"type": "main",
"index": 0
}
]
]
},
"Notion": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "aae2fbb6-0277-449a-9f26-d8d3cf53d2c4",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "Ucav6QC99JNMCkd3",
"tags": []
}
@@ -0,0 +1,82 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
object: 'page',
id: '15bfb9cb-4cf0-812b-b4bc-c85cd00727f8',
created_time: '2024-12-13T06:01:00.000Z',
last_edited_time: '2024-12-13T06:01:00.000Z',
created_by: {
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
},
last_edited_by: {
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
},
cover: null,
icon: {
type: 'emoji',
emoji: '😊',
},
parent: {
type: 'page_id',
page_id: '15bfb9cb-4cf0-81c7-aab4-c5855b8cb6c3',
},
archived: false,
in_trash: false,
properties: {
title: {
id: 'title',
type: 'title',
title: [
{
type: 'text',
text: {
content: 'Child page',
link: null,
},
annotations: {
bold: false,
italic: false,
strikethrough: false,
underline: false,
code: false,
color: 'default',
},
plain_text: 'Child page',
href: null,
},
],
},
},
url: 'https://www.notion.so/Child-page-15bfb9cb4cf0812bb4bcc85cd00727f8',
public_url: null,
request_id: 'df28ec00-4361-46af-a3b6-add18c8d1295',
};
describe('Test NotionV2, page => create', () => {
nock('https://api.notion.com')
.post('/v1/pages', {
parent: { page_id: '15bfb9cb4cf081c7aab4c5855b8cb6c3' },
properties: { title: [{ text: { content: 'Child page' } }] },
children: [
{
object: 'block',
type: 'heading_1',
heading_1: { text: [{ type: 'text', text: { content: 'Title' }, annotations: {} }] },
},
{
object: 'block',
type: 'paragraph',
paragraph: { text: [{ text: { content: 'text' } }] },
},
],
icon: { emoji: '😊' },
})
.reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['create.workflow.json'],
});
});
@@ -0,0 +1,111 @@
{
"name": "tests notion",
"nodes": [
{
"parameters": {},
"id": "4260fdbd-e92f-4712-8114-38b85f8289ea",
"name": "When clicking Execute workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"pageId": {
"__rl": true,
"value": "15bfb9cb4cf081c7aab4c5855b8cb6c3",
"mode": "id",
"__regex": "^([0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12})"
},
"title": "Child page",
"blockUi": {
"blockValues": [
{
"type": "heading_1",
"richText": true,
"text": {
"text": [
{
"text": "Title",
"annotationUi": {}
}
]
}
},
{
"textContent": "text"
}
]
},
"options": {
"icon": "😊"
}
},
"id": "5ab80e6a-c9c4-4cc5-9332-2fc7a3f8ae24",
"name": "Notion",
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [1040, 360],
"credentials": {
"notionApi": {
"id": "CiZXWkDmjiZzpcL1",
"name": "Notion account"
}
}
},
{
"parameters": {},
"id": "a664f506-72a5-4e50-80b4-97ed2e6eb334",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"id": "15bfb9cb-4cf0-812b-b4bc-c85cd00727f8",
"name": "Child page",
"url": "https://www.notion.so/Child-page-15bfb9cb4cf0812bb4bcc85cd00727f8"
}
}
]
},
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Notion",
"type": "main",
"index": 0
}
]
]
},
"Notion": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "f8f473ad-4d37-49c4-95f3-187b3a70a6f1",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "Ucav6QC99JNMCkd3",
"tags": []
}
@@ -0,0 +1,74 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
results: [
{
object: 'page',
id: '15bfb9cb-4cf0-812b-b4bc-c85cd00727f8',
created_time: '2024-12-13T06:01:00.000Z',
last_edited_time: '2024-12-13T06:01:00.000Z',
created_by: {
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
},
last_edited_by: {
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
},
cover: null,
icon: {
type: 'emoji',
emoji: '😊',
},
parent: {
type: 'page_id',
page_id: '15bfb9cb-4cf0-81c7-aab4-c5855b8cb6c3',
},
archived: false,
in_trash: false,
properties: {
title: {
id: 'title',
type: 'title',
title: [
{
type: 'text',
text: {
content: 'Child page',
link: null,
},
annotations: {
bold: false,
italic: false,
strikethrough: false,
underline: false,
code: false,
color: 'default',
},
plain_text: 'Child page',
href: null,
},
],
},
},
url: 'https://www.notion.so/Child-page-15bfb9cb4cf0812bb4bcc85cd00727f8',
public_url: null,
},
],
has_more: false,
};
describe('Test NotionV2, page => search', () => {
nock('https://api.notion.com')
.post('/v1/search', {
query: 'child',
filter: { property: 'object', value: 'page' },
sort: { direction: 'ascending', timestamp: 'last_edited_time' },
})
.reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['search.workflow.json'],
});
});
@@ -0,0 +1,97 @@
{
"name": "tests notion",
"nodes": [
{
"parameters": {},
"id": "4260fdbd-e92f-4712-8114-38b85f8289ea",
"name": "When clicking Execute workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"operation": "search",
"text": "child",
"returnAll": true,
"options": {
"filter": {
"filters": {
"value": "page"
}
},
"sort": {
"sortValue": {
"direction": "ascending"
}
}
}
},
"id": "5ab80e6a-c9c4-4cc5-9332-2fc7a3f8ae24",
"name": "Notion",
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [1040, 360],
"credentials": {
"notionApi": {
"id": "CiZXWkDmjiZzpcL1",
"name": "Notion account"
}
}
},
{
"parameters": {},
"id": "a664f506-72a5-4e50-80b4-97ed2e6eb334",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"id": "15bfb9cb-4cf0-812b-b4bc-c85cd00727f8",
"name": "Child page",
"url": "https://www.notion.so/Child-page-15bfb9cb4cf0812bb4bcc85cd00727f8"
}
}
]
},
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Notion",
"type": "main",
"index": 0
}
]
]
},
"Notion": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "75e271ec-4d76-4094-b283-9a3f61a0c111",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "Ucav6QC99JNMCkd3",
"tags": []
}