Skip to content
Merged
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
27 changes: 27 additions & 0 deletions tests/EndToEnd/forms/post-types/ClassicEditorFormCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,33 @@ public function testAccessibility(EndToEndTester $I)
}
}

/**
* Test that UTM parameters are included in links displayed in the metabox for the user to sign in to
* their Kit account.
*
* @since 1.9.6
*
* @param EndToEndTester $I Tester.
*/
public function testUTMParametersExist(EndToEndTester $I)
{
// Setup Kit plugin with no credentials or data.
$I->setupKitPluginCredentialsNoData($I);
$I->setupKitPluginResourcesNoData($I);

// Navigate to Pages > Add New.
$I->amOnAdminPage('post-new.php?post_type=page');

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

// Check that the metabox is displayed.
$I->seeElementInDOM('#wp-convertkit-meta-box');

// Confirm that UTM parameters exist for the 'sign in to Kit' link.
$I->seeInSource('<a href="https://app.kit.com/?utm_source=wordpress&amp;utm_term=en_US&amp;utm_content=convertkit" target="_blank">sign in to Kit</a>');
}

/**
* Test that the 'Default' option for the Default Form setting in the Plugin Settings works when
* creating and viewing a new WordPress Page, Post or Article, and there is no Default Form specified in the Plugin
Expand Down
72 changes: 0 additions & 72 deletions tests/EndToEnd/forms/post-types/PageNoFormCest.php

This file was deleted.

Loading