From 776c09cfd08e722ab3b324215f968a4fe44a28cf Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 13 Mar 2026 08:29:00 +0800 Subject: [PATCH 01/17] Tests: Move Check Select Order --- .../forms/general/CategoryFormCest.php | 60 ----- .../forms/general/SelectOptionOrderCest.php | 206 ++++++++++++++++++ .../EndToEnd/forms/post-types/CPTFormCest.php | 10 - .../forms/post-types/PageFormCest.php | 10 - .../forms/post-types/PostFormCest.php | 10 - .../other/RefreshResourcesButtonCest.php | 6 + .../general/other/UpgradePathsCest.php | 9 - .../PluginSettingsGeneralCest.php | 9 - 8 files changed, 212 insertions(+), 108 deletions(-) create mode 100644 tests/EndToEnd/forms/general/SelectOptionOrderCest.php diff --git a/tests/EndToEnd/forms/general/CategoryFormCest.php b/tests/EndToEnd/forms/general/CategoryFormCest.php index 70369b251..0d8e85e29 100644 --- a/tests/EndToEnd/forms/general/CategoryFormCest.php +++ b/tests/EndToEnd/forms/general/CategoryFormCest.php @@ -51,16 +51,6 @@ public function testAddCategoryWithValidFormSetting(EndToEndTester $I) value: $_ENV['CONVERTKIT_API_FORM_NAME'] ); - // Check the order of the Form resources are alphabetical, with the Default option prepending the Forms. - $I->checkSelectFormOptionOrder( - $I, - selectElement: '#wp-convertkit-form', - prependOptions: [ - 'Default', - 'None', - ] - ); - // Save. $I->click('input#submit'); @@ -117,16 +107,6 @@ public function testAddCategoryWithNoneFormSetting(EndToEndTester $I) value: 'None' ); - // Check the order of the Form resources are alphabetical, with the Default option prepending the Forms. - $I->checkSelectFormOptionOrder( - $I, - selectElement: '#wp-convertkit-form', - prependOptions: [ - 'Default', - 'None', - ] - ); - // Save. $I->click('input#submit'); @@ -192,16 +172,6 @@ public function testEditCategoryWithValidFormSetting(EndToEndTester $I) // Confirm that settings have label[for] attributes. $I->seeInSource('