From dd6062839fe6a23b580f0382c5b9a7f58f67b218 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Thu, 27 Nov 2025 18:58:06 +0800 Subject: [PATCH 1/3] Tests: Non-Inline Forms: Setup Plugin Resources --- tests/EndToEnd/forms/general/NonInlineFormCest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/EndToEnd/forms/general/NonInlineFormCest.php b/tests/EndToEnd/forms/general/NonInlineFormCest.php index 5185b6cf5..d690ff924 100644 --- a/tests/EndToEnd/forms/general/NonInlineFormCest.php +++ b/tests/EndToEnd/forms/general/NonInlineFormCest.php @@ -193,6 +193,7 @@ public function testDefaultNonInlineFormIgnoredWhenDefaultPageNonInlineFormDefin ), ] ); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage($I, 'page', 'Kit: Page: Non-Inline Form: Default'); @@ -233,6 +234,7 @@ public function testDefaultNonInlineFormIgnoredWhenPageNonInlineFormDefined(EndT ), ] ); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -276,6 +278,7 @@ public function testPageLevelNoneSettingIgnored(EndToEndTester $I) ), ] ); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -320,6 +323,7 @@ public function testPageLevelNoneSettingHonored(EndToEndTester $I) 'non_inline_form_honor_none_setting' => 'on', ] ); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -362,6 +366,7 @@ public function testDefaultNonInlineFormIgnoredWhenPageNonInlineFormDefinedInBlo ), ] ); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -415,6 +420,7 @@ public function testDefaultNonInlineFormIgnoredWhenPageNonInlineFormDefinedInSho ), ] ); + $I->setupKitPluginResources($I); // Add a Page using the Classic Editor. $I->addClassicEditorPage( @@ -470,6 +476,7 @@ public function testDefaultNonInlineFormIgnoredWhenDefaultPostNonInlineFormDefin ), ] ); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -514,6 +521,7 @@ public function testDefaultNonInlineFormIgnoredWhenPostNonInlineFormDefined(EndT ), ] ); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -558,6 +566,7 @@ public function testDefaultNonInlineFormIgnoredWhenPostCategoryNonInlineFormDefi ), ] ); + $I->setupKitPluginResources($I); // Create Category. $termID = $I->haveTermInDatabase( @@ -614,6 +623,7 @@ public function testPostLevelNoneSettingIgnored(EndToEndTester $I) ), ] ); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -659,6 +669,7 @@ public function testPostLevelNoneSettingHonored(EndToEndTester $I) 'non_inline_form_honor_none_setting' => 'on', ] ); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -703,6 +714,7 @@ public function testNonInlineFormLimitPerSession(EndToEndTester $I) 'non_inline_form_limit_per_session' => 'on', ] ); + $I->setupKitPluginResources($I); // Create a Page in the database that uses a different non-inline form. $I->havePostInDatabase( @@ -760,6 +772,7 @@ public function testNonInlineFormLimitPerSessionDoesNotSetCookieWhenDisabled(End ), ] ); + $I->setupKitPluginResources($I); // Create a Page in the database. $I->havePostInDatabase( From ae81422f2f7962b6a6a604f33a0c2b2a46470ed7 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Thu, 27 Nov 2025 20:01:30 +0800 Subject: [PATCH 2/3] Tests: Add cached resources to Member Content tests --- .../general/RestrictContentCacheCest.php | 1 + .../general/RestrictContentFilterCPTCest.php | 6 ++++++ .../general/RestrictContentFilterPageCest.php | 5 +++++ .../general/RestrictContentFilterPostCest.php | 5 +++++ .../restrict-content/general/RestrictContentFormCest.php | 5 +++++ .../general/RestrictContentSettingsCest.php | 1 + .../restrict-content/general/RestrictContentTagCest.php | 9 +++++++++ .../post-types/RestrictContentProductCPTCest.php | 6 ++++++ .../post-types/RestrictContentProductPageCest.php | 8 ++++++++ .../post-types/RestrictContentProductPostCest.php | 8 ++++++++ ...ictContentProductThirdPartyThemeOrPageBuilderCest.php | 1 + 11 files changed, 55 insertions(+) diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentCacheCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentCacheCest.php index 7968b035e..2c0abccc0 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentCacheCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentCacheCest.php @@ -24,6 +24,7 @@ public function _before(EndToEndTester $I) // Activate and Setup Kit plugin. $I->activateKitPlugin($I); $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Clear up any cache configuration files that might exist from previous tests. $I->deleteWPCacheConfigFiles($I); diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentFilterCPTCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentFilterCPTCest.php index aca213ebb..6bafb8829 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentFilterCPTCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentFilterCPTCest.php @@ -81,6 +81,7 @@ public function testNoFilterOnPrivateCPT(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Navigate to Private CPT. $I->amOnAdminPage('edit.php?post_type=private'); @@ -103,6 +104,7 @@ public function testFilterByProduct(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Article, set to restrict content to a Product. $I->createRestrictedContentPage( @@ -153,6 +155,7 @@ public function testFilterByTag(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Article, set to restrict content to a Product. $I->createRestrictedContentPage( @@ -203,6 +206,7 @@ public function testFilterByForm(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Article, set to restrict content to a Product. $I->createRestrictedContentPage( @@ -253,6 +257,7 @@ public function testFilterByAllMemberOnlyContent(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create a mix of Posts restricted and not restricted to Forms, Tags and Products. $I->createRestrictedContentPage( @@ -340,6 +345,7 @@ public function testNoFilteringWhenAllContentSelected(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create a mix of Posts restricted and not restricted to Forms, Tags and Products. $I->createRestrictedContentPage( diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentFilterPageCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentFilterPageCest.php index cb36debe0..79f637b71 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentFilterPageCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentFilterPageCest.php @@ -77,6 +77,7 @@ public function testFilterByProduct(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Page, set to restrict content to a Product. $I->createRestrictedContentPage( @@ -126,6 +127,7 @@ public function testFilterByTag(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Page, set to restrict content to a Tag. $I->createRestrictedContentPage( @@ -175,6 +177,7 @@ public function testFilterByForm(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Page, set to restrict content to a Form. $I->createRestrictedContentPage( @@ -225,6 +228,7 @@ public function testFilterByAllMemberOnlyContent(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create a mix of Pages restricted and not restricted to Forms, Tags and Products. $I->createRestrictedContentPage( @@ -312,6 +316,7 @@ public function testNoFilteringWhenAllContentSelected(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create a mix of Posts restricted and not restricted to Forms, Tags and Products. $I->createRestrictedContentPage( diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentFilterPostCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentFilterPostCest.php index 8a2fb805f..f7279c8e8 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentFilterPostCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentFilterPostCest.php @@ -77,6 +77,7 @@ public function testFilterByProduct(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Post, set to restrict content to a Product. $I->createRestrictedContentPage( @@ -127,6 +128,7 @@ public function testFilterByTag(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Post, set to restrict content to a Tag. $I->createRestrictedContentPage( @@ -177,6 +179,7 @@ public function testFilterByForm(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create Post, set to restrict content to a Form. $I->createRestrictedContentPage( @@ -227,6 +230,7 @@ public function testFilterByAllMemberOnlyContent(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create a mix of Posts restricted and not restricted to Forms, Tags and Products. $I->createRestrictedContentPage( @@ -314,6 +318,7 @@ public function testNoFilteringWhenAllContentSelected(EndToEndTester $I) { // Setup Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Create a mix of Posts restricted and not restricted to Forms, Tags and Products. $I->createRestrictedContentPage( diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentFormCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentFormCest.php index 9792aaa07..8507bae3a 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentFormCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentFormCest.php @@ -36,6 +36,7 @@ public function testRestrictContentByForm(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -85,6 +86,7 @@ public function testRestrictContentByFormWithLoginModal(EndToEndTester $I) { // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -137,6 +139,7 @@ public function testRestrictContentByInvalidForm(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Page. $pageID = $I->createRestrictedContentPage( @@ -166,6 +169,7 @@ public function testRestrictContentByFormUsingQuickEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Page. $pageID = $I->createRestrictedContentPage( @@ -205,6 +209,7 @@ public function testRestrictContentByFormUsingBulkEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create two Pages. $pageIDs = array( diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentSettingsCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentSettingsCest.php index 471440291..dd9813ec7 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentSettingsCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentSettingsCest.php @@ -25,6 +25,7 @@ public function _before(EndToEndTester $I) // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); } /** diff --git a/tests/EndToEnd/restrict-content/general/RestrictContentTagCest.php b/tests/EndToEnd/restrict-content/general/RestrictContentTagCest.php index 204fc5fd1..906e68dfa 100644 --- a/tests/EndToEnd/restrict-content/general/RestrictContentTagCest.php +++ b/tests/EndToEnd/restrict-content/general/RestrictContentTagCest.php @@ -36,6 +36,7 @@ public function testRestrictContentByTag(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -88,6 +89,7 @@ public function testRestrictContentByTagWithRequireLoginEnabled(EndToEndTester $ { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Setup Restrict Content functionality with Require Login enabled. $I->setupKitPluginRestrictContent( @@ -156,6 +158,7 @@ public function testRestrictContentByTagWithRecaptchaAndRequireLoginEnabled(EndT 'recaptcha_minimum_score' => '0.01', // Set a low score to ensure reCAPTCHA passes the subscriber. ] ); + $I->setupKitPluginResources($I); // Define reCAPTCHA settings. $options = [ @@ -220,6 +223,7 @@ public function testRestrictContentByTagUsingLoginModal(EndToEndTester $I) { // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Define Restrict Content settings. $options = [ @@ -282,6 +286,7 @@ public function testRestrictContentByInvalidTag(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Page. $pageID = $I->createRestrictedContentPage( @@ -319,6 +324,7 @@ public function testRestrictContentByTagWithRecaptchaEnabled(EndToEndTester $I) 'recaptcha_minimum_score' => '0.01', // Set a low score to ensure reCAPTCHA passes the subscriber. ] ); + $I->setupKitPluginResources($I); // Setup Restrict Content functionality. $I->setupKitPluginRestrictContent($I); @@ -379,6 +385,7 @@ public function testRestrictContentByTagWithRecaptchaEnabledWithHighMinimumScore 'recaptcha_minimum_score' => '0.99', // Set a high score to ensure reCAPTCHA blocks the subscriber. ] ); + $I->setupKitPluginResources($I); // Setup Restrict Content functionality. $I->setupKitPluginRestrictContent($I); @@ -438,6 +445,7 @@ public function testRestrictContentByTagUsingQuickEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Page. $pageID = $I->createRestrictedContentPage( @@ -477,6 +485,7 @@ public function testRestrictContentByTagUsingBulkEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create two Pages. $pageIDs = array( diff --git a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php index 9dbd09530..b30199c29 100644 --- a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php +++ b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php @@ -103,6 +103,7 @@ public function testRestrictContentByProduct(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add the CPT using the Gutenberg editor. $I->addGutenbergPage( @@ -150,6 +151,7 @@ public function testRestrictContentByProductWithAddTag(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a CPT using the Gutenberg editor. $I->addGutenbergPage( @@ -198,6 +200,7 @@ public function testRestrictContentByProductWithGeneratedExcerpt(EndToEndTester { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Define visible content and member-only content. $visibleContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at velit purus. Nam gravida tempor tellus, sit amet euismod arcu. Mauris sed mattis leo. Mauris viverra eget tellus sit amet vehicula. Nulla eget sapien quis felis euismod pellentesque. Quisque elementum et diam nec eleifend. Sed ornare quam eget augue consequat, in maximus quam fringilla. Morbi'; @@ -251,6 +254,7 @@ public function testRestrictContentModalByProduct(EndToEndTester $I) { // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Add the CPT using the Gutenberg editor. $I->addGutenbergPage( @@ -330,6 +334,7 @@ public function testRestrictContentByProductUsingQuickEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create the CPT. $postID = $I->createRestrictedContentPage( @@ -366,6 +371,7 @@ public function testRestrictContentByProductUsingBulkEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create two CPTs. $postIDs = array( diff --git a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php index cfe63a1ee..42e742f51 100644 --- a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php +++ b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php @@ -72,6 +72,7 @@ public function testRestrictContentByProduct(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -118,6 +119,7 @@ public function testRestrictContentByProductWithAddTag(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -165,6 +167,7 @@ public function testRestrictContentByProductWithGeneratedExcerpt(EndToEndTester { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Define visible content and member-only content. $visibleContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at velit purus. Nam gravida tempor tellus, sit amet euismod arcu. Mauris sed mattis leo. Mauris viverra eget tellus sit amet vehicula. Nulla eget sapien quis felis euismod pellentesque. Quisque elementum et diam nec eleifend. Sed ornare quam eget augue consequat, in maximus quam fringilla. Morbi'; @@ -217,6 +220,7 @@ public function testRestrictContentModalByProduct(EndToEndTester $I) { // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -264,6 +268,7 @@ public function testRestrictContentDisplaysNoticeWhenNoAccess(EndToEndTester $I) { // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Add a Page using the Gutenberg editor. $I->addGutenbergPage( @@ -416,6 +421,7 @@ public function testRestrictContentUsingCrawler(EndToEndTester $I) // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Setup Restrict Content functionality with permit crawlers setting enabled. $I->setupKitPluginRestrictContent( @@ -472,6 +478,7 @@ public function testRestrictContentByProductUsingQuickEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Page. $pageID = $I->createRestrictedContentPage( @@ -507,6 +514,7 @@ public function testRestrictContentByProductUsingBulkEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create two Pages. $pageIDs = array( diff --git a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPostCest.php b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPostCest.php index 36fc31568..ddd1a65e8 100644 --- a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPostCest.php +++ b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPostCest.php @@ -73,6 +73,7 @@ public function testRestrictContentByProduct(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -120,6 +121,7 @@ public function testRestrictContentByProductWithAddTag(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -168,6 +170,7 @@ public function testRestrictContentByProductWithGeneratedExcerpt(EndToEndTester { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Define visible content and member-only content. $visibleContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at velit purus. Nam gravida tempor tellus, sit amet euismod arcu. Mauris sed mattis leo. Mauris viverra eget tellus sit amet vehicula. Nulla eget sapien quis felis euismod pellentesque. Quisque elementum et diam nec eleifend. Sed ornare quam eget augue consequat, in maximus quam fringilla. Morbi'; @@ -221,6 +224,7 @@ public function testRestrictContentByProductWithDefinedExcerpt(EndToEndTester $I { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Define visible content and member-only content. $options = [ @@ -288,6 +292,7 @@ public function testRestrictContentModalByProduct(EndToEndTester $I) { // Setup Kit Plugin. $I->setupKitPlugin($I); + $I->setupKitPluginResources($I); // Add a Post using the Gutenberg editor. $I->addGutenbergPage( @@ -337,6 +342,7 @@ public function testRestrictContentByInvalidProduct(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Post. $postID = $I->createRestrictedContentPage( @@ -367,6 +373,7 @@ public function testRestrictContentByProductUsingQuickEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Post. $postID = $I->createRestrictedContentPage( @@ -403,6 +410,7 @@ public function testRestrictContentByProductUsingBulkEdit(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create two Posts. $postIDs = array( diff --git a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductThirdPartyThemeOrPageBuilderCest.php b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductThirdPartyThemeOrPageBuilderCest.php index d99ac8e32..cd9fb57e5 100644 --- a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductThirdPartyThemeOrPageBuilderCest.php +++ b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductThirdPartyThemeOrPageBuilderCest.php @@ -30,6 +30,7 @@ public function _before(EndToEndTester $I) // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); } /** From dd2a777118e2535f08316364e8226f62513f897a Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Thu, 27 Nov 2025 21:52:25 +0800 Subject: [PATCH 3/3] Tests: Restrict Content: Product: Setup resources for invalid product tests --- .../post-types/RestrictContentProductCPTCest.php | 1 + .../post-types/RestrictContentProductPageCest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php index b30199c29..0ff27b9f8 100644 --- a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php +++ b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductCPTCest.php @@ -304,6 +304,7 @@ public function testRestrictContentByInvalidProduct(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create the CPT. $postID = $I->createRestrictedContentPage( diff --git a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php index 42e742f51..8a80cd146 100644 --- a/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php +++ b/tests/EndToEnd/restrict-content/post-types/RestrictContentProductPageCest.php @@ -324,6 +324,7 @@ public function testRestrictContentByInvalidProduct(EndToEndTester $I) { // Setup Kit Plugin, disabling JS. $I->setupKitPluginDisableJS($I); + $I->setupKitPluginResources($I); // Programmatically create a Page. $pageID = $I->createRestrictedContentPage(