Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public function testEnableDisableImport(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -102,6 +105,9 @@ public function testEnableDisableImport(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -145,6 +151,9 @@ public function testSaveSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down
3 changes: 3 additions & 0 deletions tests/EndToEnd/general/other/ActivateDeactivatePluginCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public function testPluginActivationAndDeactivationWithOtherPlugins(EndToEndTest
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down
3 changes: 3 additions & 0 deletions tests/EndToEnd/general/other/LegacyFormDropdownCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public function testWarningDisplayedForLegacyDefaultFormsSetting(EndToEndTester
);
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Confirm the warning is no longer displayed.
$I->waitForElementNotVisible('#convertkit-legacy-settings-warning');
}
Expand Down
6 changes: 6 additions & 0 deletions tests/EndToEnd/general/other/ReviewRequestCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function testReviewRequestOnSaveSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -83,6 +86,9 @@ public function testReviewRequestOnSaveBlankSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ public function testValidCredentials(EndToEndTester $I)
// Save Changes to confirm credentials are not lost.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -270,6 +273,7 @@ public function testChangeDefaultFormSettingAndPreviewFormLinks(EndToEndTester $

// Setup Plugin, without defining default Forms.
$I->setupKitPluginNoDefaultForms($I);
$I->setupKitPluginResources($I);

// Go to the Plugin's Settings Screen.
$I->loadKitSettingsGeneralScreen($I);
Expand Down Expand Up @@ -326,6 +330,9 @@ public function testChangeDefaultFormSettingAndPreviewFormLinks(EndToEndTester $
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -349,6 +356,7 @@ public function testChangeDefaultSiteWideFormsSettingAndPreviewFormLinks(EndToEn
{
// Setup Plugin, without defining default Forms.
$I->setupKitPluginNoDefaultForms($I);
$I->setupKitPluginResources($I);

// Go to the Plugin's Settings Screen.
$I->loadKitSettingsGeneralScreen($I);
Expand Down Expand Up @@ -404,6 +412,9 @@ public function testChangeDefaultSiteWideFormsSettingAndPreviewFormLinks(EndToEn
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -431,6 +442,7 @@ public function testChangeDefaultFormPositionAfterElementSetting(EndToEndTester
{
// Setup Plugin, without defining default Forms.
$I->setupKitPluginNoDefaultForms($I);
$I->setupKitPluginResources($I);

// Go to the Plugin's Settings Screen.
$I->loadKitSettingsGeneralScreen($I);
Expand Down Expand Up @@ -476,6 +488,9 @@ public function testChangeDefaultFormPositionAfterElementSetting(EndToEndTester
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -530,6 +545,7 @@ public function testPublicPrivateCustomPostTypeSettingsExist(EndToEndTester $I)

// Setup Plugin, without defining default Forms.
$I->setupKitPluginNoDefaultForms($I);
$I->setupKitPluginResources($I);

// Go to the Plugin's Settings Screen.
$I->loadKitSettingsGeneralScreen($I);
Expand All @@ -547,6 +563,9 @@ public function testPublicPrivateCustomPostTypeSettingsExist(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -638,6 +657,9 @@ public function testRecaptchaSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -654,6 +676,9 @@ public function testRecaptchaSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -704,6 +729,9 @@ public function testCloudflareTurnstileSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -718,6 +746,9 @@ public function testCloudflareTurnstileSettings(EndToEndTester $I)
$I->clearField('#cloudflare_turnstile_secret_key');
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -748,6 +779,9 @@ public function testEnableAndDisableDebugSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -760,6 +794,9 @@ public function testEnableAndDisableDebugSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -789,6 +826,9 @@ public function testEnableAndDisableJavaScriptSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -801,6 +841,9 @@ public function testEnableAndDisableJavaScriptSettings(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -831,6 +874,9 @@ public function testEnableAndDisableCSSSetting(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -852,6 +898,9 @@ public function testEnableAndDisableCSSSetting(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -888,6 +937,9 @@ public function testEnableAndDisableAddNewLandingPageMemberContentButtonSetting(
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -900,6 +952,9 @@ public function testEnableAndDisableAddNewLandingPageMemberContentButtonSetting(
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -930,6 +985,9 @@ public function testEnableAndDisableUsageTrackingSetting(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -942,6 +1000,9 @@ public function testEnableAndDisableUsageTrackingSetting(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -993,6 +1054,9 @@ public function testSettingsScreenWhenNoResources(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -1011,6 +1075,9 @@ public function testSettingsScreenWhenNoResources(EndToEndTester $I)
// Click the Save Changes button.
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function testEnableAndDisableMCPServerSetting(EndToEndTester $I)
$I->checkOption('#enabled');
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand All @@ -70,6 +73,9 @@ public function testEnableAndDisableMCPServerSetting(EndToEndTester $I)
$I->uncheckOption('#enabled');
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down Expand Up @@ -115,6 +121,9 @@ public function testGenerateAndRevokeApplicationPassword(EndToEndTester $I)
$I->checkOption('#enabled');
$I->click('Save Changes');

// Wait for the settings to save.
$I->waitForElementVisible('#setting-error-settings_updated');

// Check that no PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

Expand Down
16 changes: 14 additions & 2 deletions tests/EndToEnd/integrations/elementor/ElementorBroadcastsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ public function testBroadcastsWidgetIsRegistered(EndToEndTester $I)
// Click Edit with Elementor button.
$I->click('#elementor-switch-mode-button');

// Wait for Elementor to load, as its loading overlay covers the widget panel,
// which makes the panel's search field not interactable.
$I->waitForElementVisible('#elementor-preview-iframe');
$I->waitForElementNotVisible('#elementor-loading');

// Search for the Kit Broadcasts block.
$I->waitForElementVisible('#elementor-panel-elements-search-input');
$I->waitForElementVisible('#elementor-panel-page-elements .elementor-element');
$I->waitForElementClickable('#elementor-panel-elements-search-input');
$I->fillField('#elementor-panel-elements-search-input', 'Kit Broadcasts');

// Confirm that the Broadcasts widget is displayed as an option.
Expand All @@ -70,8 +76,14 @@ public function testBroadcastsWidgetConditionalFields(EndToEndTester $I)
// Click Edit with Elementor button.
$I->click('#elementor-switch-mode-button');

// Wait for Elementor to load, as its loading overlay covers the widget panel,
// which makes the panel's search field not interactable.
$I->waitForElementVisible('#elementor-preview-iframe');
$I->waitForElementNotVisible('#elementor-loading');

// Search for the Kit Broadcasts block.
$I->waitForElementVisible('#elementor-panel-elements-search-input');
$I->waitForElementVisible('#elementor-panel-page-elements .elementor-element');
$I->waitForElementClickable('#elementor-panel-elements-search-input');
$I->fillField('#elementor-panel-elements-search-input', 'Kit Broadcasts');

// Insert the Broadcasts widget.
Expand Down
8 changes: 7 additions & 1 deletion tests/EndToEnd/integrations/elementor/ElementorFormCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,14 @@ public function testFormWidgetIsRegistered(EndToEndTester $I)
// Click Edit with Elementor button.
$I->click('#elementor-switch-mode-button');

// Wait for Elementor to load, as its loading overlay covers the widget panel,
// which makes the panel's search field not interactable.
$I->waitForElementVisible('#elementor-preview-iframe');
$I->waitForElementNotVisible('#elementor-loading');

// Search for the Kit Form block.
$I->waitForElementVisible('#elementor-panel-elements-search-input');
$I->waitForElementVisible('#elementor-panel-page-elements .elementor-element');
$I->waitForElementClickable('#elementor-panel-elements-search-input');
$I->fillField('#elementor-panel-elements-search-input', 'Kit Form');

// Confirm that the Form widget is displayed as an option.
Expand Down
Loading
Loading