From f401960445b6f250e21822f3acf17183a82ac775 Mon Sep 17 00:00:00 2001 From: geodem Date: Tue, 10 Feb 2026 02:52:22 +0800 Subject: [PATCH] added code app data seeding task | updated plugin and type decleration --- cypress/index.d.ts | 9 ++++++ cypress/plugins/index.js | 2 ++ cypress/plugins/seeds/code.ts | 61 +++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 cypress/plugins/seeds/code.ts diff --git a/cypress/index.d.ts b/cypress/index.d.ts index b5742414d2..15c279c881 100644 --- a/cypress/index.d.ts +++ b/cypress/index.d.ts @@ -2,6 +2,9 @@ import { ContentItem, ContentModel, ContentModelField, + WebView, + Stylesheet, + Script, } from "../src/shell/services/types"; import "./support/commands"; @@ -65,6 +68,12 @@ declare global { fields: Partial; items: Partial; }>; + task( + event: "seed:code", + path: string + ): Chainable< + Partial | Partial