Skip to content

Commit

Permalink
Merge pull request #738 from ConvertKit/update-ck-page-to-kit-com
Browse files Browse the repository at this point in the history
Tests: Update `ck.page` to `kit.com`
  • Loading branch information
n7studios authored Nov 5, 2024
2 parents 9969424 + fdbe546 commit 16181fb
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
12 changes: 6 additions & 6 deletions .env.dist.testing
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CONVERTKIT_API_FORM_ID="2765139"
CONVERTKIT_API_FORM_FORMAT_MODAL_NAME="Modal Form [modal]"
CONVERTKIT_API_FORM_FORMAT_MODAL_NAME_ONLY="Modal Form"
CONVERTKIT_API_FORM_FORMAT_MODAL_ID="2780977"
CONVERTKIT_API_FORM_FORMAT_MODAL_URL="https://cheerful-architect-3237.ck.page/397e876257"
CONVERTKIT_API_FORM_FORMAT_MODAL_URL="https://cheerful-architect-3237.kit.com/397e876257"
CONVERTKIT_API_FORM_FORMAT_SLIDE_IN_NAME="Slide In Form [slide in]"
CONVERTKIT_API_FORM_FORMAT_SLIDE_IN_NAME_ONLY="Slide In Form"
CONVERTKIT_API_FORM_FORMAT_SLIDE_IN_ID="2780979"
Expand All @@ -41,7 +41,7 @@ CONVERTKIT_API_LEGACY_LANDING_PAGE_ID="470103"
CONVERTKIT_API_LEGACY_LANDING_PAGE_URL="https://app.kit.com/landing_pages/470103"
CONVERTKIT_API_PRODUCT_NAME="Newsletter Subscription"
CONVERTKIT_API_PRODUCT_ID="36377"
CONVERTKIT_API_PRODUCT_URL="https://cheerful-architect-3237.ck.page/products/newsletter-subscription"
CONVERTKIT_API_PRODUCT_URL="https://cheerful-architect-3237.kit.com/products/newsletter-subscription"
CONVERTKIT_API_PRODUCT_DISCOUNT_CODE=B7G96H637H
CONVERTKIT_API_SEQUENCE_NAME="WordPress Sequence"
CONVERTKIT_API_SEQUENCE_ID="1030824"
Expand All @@ -51,13 +51,13 @@ CONVERTKIT_API_SUBSCRIBER_EMAIL="[email protected]"
CONVERTKIT_API_SUBSCRIBER_ID="1579118532"
CONVERTKIT_API_THIRD_PARTY_INTEGRATIONS_FORM_NAME="Third Party Integrations Form [inline]"
CONVERTKIT_API_THIRD_PARTY_INTEGRATIONS_FORM_ID="3003590"
CONVERTKIT_API_COMMERCE_JS_URL="https://cheerful-architect-3237.ck.page/commerce.js"
CONVERTKIT_API_COMMERCE_JS_URL="https://cheerful-architect-3237.kit.com/commerce.js"
CONVERTKIT_API_BROADCAST_ID=3175837
CONVERTKIT_API_BROADCAST_FIRST_URL="https://cheerful-architect-3237.ck.page/posts/html-template-test"
CONVERTKIT_API_BROADCAST_FIRST_URL="https://cheerful-architect-3237.kit.com/posts/html-template-test"
CONVERTKIT_API_BROADCAST_FIRST_TITLE="HTML Template Test"
CONVERTKIT_API_BROADCAST_FIRST_DATE="2023-08-02T16:34:51.000Z"
CONVERTKIT_API_BROADCAST_SECOND_URL="https://cheerful-architect-3237.ck.page/posts/paid-subscriber-broadcast"
CONVERTKIT_API_BROADCAST_SECOND_URL="https://cheerful-architect-3237.kit.com/posts/paid-subscriber-broadcast"
CONVERTKIT_API_BROADCAST_SECOND_TITLE="Paid Subscriber Broadcast"
CONVERTKIT_API_BROADCAST_THIRD_URL="https://cheerful-architect-3237.ck.page/posts/test-subject"
CONVERTKIT_API_BROADCAST_THIRD_URL="https://cheerful-architect-3237.kit.com/posts/test-subject"
CONVERTKIT_API_BROADCAST_THIRD_TITLE="Test Subject"
CONVERTKIT_API_BROADCAST_COUNT=5
12 changes: 6 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CONVERTKIT_API_FORM_ID="2765139"
CONVERTKIT_API_FORM_FORMAT_MODAL_NAME="Modal Form [modal]"
CONVERTKIT_API_FORM_FORMAT_MODAL_NAME_ONLY="Modal Form"
CONVERTKIT_API_FORM_FORMAT_MODAL_ID="2780977"
CONVERTKIT_API_FORM_FORMAT_MODAL_URL="https://cheerful-architect-3237.ck.page/397e876257"
CONVERTKIT_API_FORM_FORMAT_MODAL_URL="https://cheerful-architect-3237.kit.com/397e876257"
CONVERTKIT_API_FORM_FORMAT_SLIDE_IN_NAME="Slide In Form [slide in]"
CONVERTKIT_API_FORM_FORMAT_SLIDE_IN_NAME_ONLY="Slide In Form"
CONVERTKIT_API_FORM_FORMAT_SLIDE_IN_ID="2780979"
Expand All @@ -47,7 +47,7 @@ CONVERTKIT_API_LEGACY_LANDING_PAGE_ID="470103"
CONVERTKIT_API_LEGACY_LANDING_PAGE_URL="https://app.kit.com/landing_pages/470103"
CONVERTKIT_API_PRODUCT_NAME="Newsletter Subscription"
CONVERTKIT_API_PRODUCT_ID="36377"
CONVERTKIT_API_PRODUCT_URL="https://cheerful-architect-3237.ck.page/products/newsletter-subscription"
CONVERTKIT_API_PRODUCT_URL="https://cheerful-architect-3237.kit.com/products/newsletter-subscription"
CONVERTKIT_API_PRODUCT_DISCOUNT_CODE=B7G96H637H
CONVERTKIT_API_SEQUENCE_NAME="WordPress Sequence"
CONVERTKIT_API_SEQUENCE_ID="1030824"
Expand All @@ -57,13 +57,13 @@ CONVERTKIT_API_SUBSCRIBER_EMAIL="[email protected]"
CONVERTKIT_API_SUBSCRIBER_ID="1579118532"
CONVERTKIT_API_THIRD_PARTY_INTEGRATIONS_FORM_NAME="Third Party Integrations Form [inline]"
CONVERTKIT_API_THIRD_PARTY_INTEGRATIONS_FORM_ID="3003590"
CONVERTKIT_API_COMMERCE_JS_URL="https://cheerful-architect-3237.ck.page/commerce.js"
CONVERTKIT_API_COMMERCE_JS_URL="https://cheerful-architect-3237.kit.com/commerce.js"
CONVERTKIT_API_BROADCAST_ID=3175837
CONVERTKIT_API_BROADCAST_FIRST_URL="https://cheerful-architect-3237.ck.page/posts/html-template-test"
CONVERTKIT_API_BROADCAST_FIRST_URL="https://cheerful-architect-3237.kit.com/posts/html-template-test"
CONVERTKIT_API_BROADCAST_FIRST_TITLE="HTML Template Test"
CONVERTKIT_API_BROADCAST_FIRST_DATE="2023-08-02T16:34:51.000Z"
CONVERTKIT_API_BROADCAST_SECOND_URL="https://cheerful-architect-3237.ck.page/posts/paid-subscriber-broadcast"
CONVERTKIT_API_BROADCAST_SECOND_URL="https://cheerful-architect-3237.kit.com/posts/paid-subscriber-broadcast"
CONVERTKIT_API_BROADCAST_SECOND_TITLE="Paid Subscriber Broadcast"
CONVERTKIT_API_BROADCAST_THIRD_URL="https://cheerful-architect-3237.ck.page/posts/test-subject"
CONVERTKIT_API_BROADCAST_THIRD_URL="https://cheerful-architect-3237.kit.com/posts/test-subject"
CONVERTKIT_API_BROADCAST_THIRD_TITLE="Test Subject"
CONVERTKIT_API_BROADCAST_COUNT=4
50 changes: 25 additions & 25 deletions tests/_support/Helper/Acceptance/ConvertKitPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2022-02-17T15:05:31.000Z',
'type' => 'embed',
'format' => 'inline',
'embed_js' => 'https://cheerful-architect-3237.ck.page/71cbcc4042/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/71cbcc4042',
'embed_js' => 'https://cheerful-architect-3237.kit.com/71cbcc4042/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/71cbcc4042',
'archived' => false,
'uid' => '71cbcc4042',
],
Expand All @@ -210,8 +210,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-11-17T04:22:06.000Z',
'type' => 'embed',
'format' => 'modal',
'embed_js' => 'https://cheerful-architect-3237.ck.page/397e876257/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/397e876257',
'embed_js' => 'https://cheerful-architect-3237.kit.com/397e876257/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/397e876257',
'archived' => false,
'uid' => '397e876257',
],
Expand All @@ -221,8 +221,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-11-17T04:22:24.000Z',
'type' => 'embed',
'format' => 'slide in',
'embed_js' => 'https://cheerful-architect-3237.ck.page/e0d65bed9d/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/e0d65bed9d',
'embed_js' => 'https://cheerful-architect-3237.kit.com/e0d65bed9d/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/e0d65bed9d',
'archived' => false,
'uid' => 'e0d65bed9d',
],
Expand All @@ -232,8 +232,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-11-11T15:30:40.000Z',
'type' => 'embed',
'format' => 'inline',
'embed_js' => 'https://cheerful-architect-3237.ck.page/85629c512d/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/85629c512d',
'embed_js' => 'https://cheerful-architect-3237.kit.com/85629c512d/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/85629c512d',
'archived' => false,
'uid' => '85629c512d',
],
Expand All @@ -257,8 +257,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-11-17T04:22:42.000Z',
'type' => 'embed',
'format' => 'sticky bar',
'embed_js' => 'https://cheerful-architect-3237.ck.page/9f5c601482/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/9f5c601482',
'embed_js' => 'https://cheerful-architect-3237.kit.com/9f5c601482/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/9f5c601482',
'archived' => false,
'uid' => '9f5c601482',
],
Expand All @@ -268,8 +268,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2022-07-15T15:06:32.000Z',
'type' => 'embed',
'format' => 'inline',
'embed_js' => 'https://cheerful-architect-3237.ck.page/3bb15822a2/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/3bb15822a2',
'embed_js' => 'https://cheerful-architect-3237.kit.com/3bb15822a2/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/3bb15822a2',
'archived' => false,
'uid' => '3bb15822a2',
],
Expand All @@ -279,8 +279,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-11-11T15:32:54.000Z',
'type' => 'embed',
'format' => 'inline',
'embed_js' => 'https://cheerful-architect-3237.ck.page/7e238f3920/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/7e238f3920',
'embed_js' => 'https://cheerful-architect-3237.kit.com/7e238f3920/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/7e238f3920',
'archived' => false,
'uid' => '7e238f3920',
],
Expand All @@ -297,8 +297,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-11-11T15:45:33.000Z',
'type' => 'hosted',
'format' => null,
'embed_js' => 'https://cheerful-architect-3237.ck.page/99f1db6843/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/99f1db6843',
'embed_js' => 'https://cheerful-architect-3237.kit.com/99f1db6843/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/99f1db6843',
'archived' => false,
'uid' => '99f1db6843',
],
Expand All @@ -308,8 +308,8 @@ public function setupConvertKitPluginResources($I)
'created_at' => '2021-12-16T14:55:58.000Z',
'type' => 'hosted',
'format' => null,
'embed_js' => 'https://cheerful-architect-3237.ck.page/cc5eb21744/index.js',
'embed_url' => 'https://cheerful-architect-3237.ck.page/cc5eb21744',
'embed_js' => 'https://cheerful-architect-3237.kit.com/cc5eb21744/index.js',
'embed_url' => 'https://cheerful-architect-3237.kit.com/cc5eb21744',
'archived' => false,
'uid' => 'cc5eb21744',
],
Expand Down Expand Up @@ -337,7 +337,7 @@ public function setupConvertKitPluginResources($I)
224758 => [
'id' => 224758,
'title' => 'Test Subject',
'url' => 'https://cheerful-architect-3237.ck.page/posts/test-subject',
'url' => 'https://cheerful-architect-3237.kit.com/posts/test-subject',
'published_at' => '2022-01-24T00:00:00.000Z',
'description' => 'Description text for Test Subject',
'thumbnail_url' => 'https://placehold.co/600x400',
Expand All @@ -347,7 +347,7 @@ public function setupConvertKitPluginResources($I)
489480 => [
'id' => 489480,
'title' => 'Broadcast 2',
'url' => 'https://cheerful-architect-3237.ck.page/posts/broadcast-2',
'url' => 'https://cheerful-architect-3237.kit.com/posts/broadcast-2',
'published_at' => '2022-04-08T00:00:00.000Z',
'description' => 'Description text for Broadcast 2',
'thumbnail_url' => 'https://placehold.co/600x400',
Expand All @@ -357,7 +357,7 @@ public function setupConvertKitPluginResources($I)
3175837 => [
'id' => 3175837,
'title' => 'HTML Template Test',
'url' => 'https://cheerful-architect-3237.ck.page/posts/html-template-test',
'url' => 'https://cheerful-architect-3237.kit.com/posts/html-template-test',
'published_at' => '2023-08-02T16:34:51.000Z',
'description' => "Heading 1\nParagraph\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ultrices vehicula erat, eu faucibus ligula viverra sit amet. Nullam porta scelerisque lacus eu dignissim. Curabitur mattis dui est, sed gravida ex tincidunt sed.\nLorem ipsum dolor sit amet, consectetur adipiscing...",
'thumbnail_url' => 'https://embed.filekitcdn.com/e/pX62TATVeCKK5QzkXWNLw3/qM63x7vF3qN1whboGdEpuL',
Expand All @@ -367,7 +367,7 @@ public function setupConvertKitPluginResources($I)
572575 => [
'id' => 572575,
'title' => 'Paid Subscriber Broadcast',
'url' => 'https://cheerful-architect-3237.ck.page/posts/paid-subscriber-broadcast',
'url' => 'https://cheerful-architect-3237.kit.com/posts/paid-subscriber-broadcast',
'published_at' => '2022-05-03T00:00:00.000Z',
'description' => 'Description text for Paid Subscriber Broadcast',
'thumbnail_url' => 'https://placehold.co/600x400',
Expand All @@ -377,7 +377,7 @@ public function setupConvertKitPluginResources($I)
5395025 => [
'id' => 5395025,
'title' => 'New Broadcast',
'url' => 'https://cheerful-architect-3237.ck.page/posts/',
'url' => 'https://cheerful-architect-3237.kit.com/posts/',
'published_at' => '2024-04-30T08:00:36.000Z',
'description' => 'Test Content',
'thumbnail_url' => null,
Expand All @@ -394,13 +394,13 @@ public function setupConvertKitPluginResources($I)
42847 => [
'id' => 42847,
'name' => 'Example Tip Jar',
'url' => 'https://cheerful-architect-3237.ck.page/products/example-tip-jar',
'url' => 'https://cheerful-architect-3237.kit.com/products/example-tip-jar',
'published' => true,
],
36377 => [
'id' => 36377,
'name' => 'Newsletter Subscription',
'url' => 'https://cheerful-architect-3237.ck.page/products/newsletter-subscription',
'url' => 'https://cheerful-architect-3237.kit.com/products/newsletter-subscription',
'published' => true,
],
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public function testBroadcastsBlockWithBlankLimitParameter(AcceptanceTester $I)
// Confirm that the expected Broadcast name is displayed first links to the expected URL, with UTM parameters.
$I->assertEquals(
$I->grabAttributeFrom('div.convertkit-broadcasts ul.convertkit-broadcasts-list li.convertkit-broadcast:first-child a', 'href'),
'https://cheerful-architect-3237.ck.page/posts/?utm_source=wordpress&utm_term=en_US&utm_content=convertkit'
'https://cheerful-architect-3237.kit.com/posts/?utm_source=wordpress&utm_term=en_US&utm_content=convertkit'
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/wpunit/ResourceFormsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function testGetHTML()
{
$result = $this->resource->get_html($_ENV['CONVERTKIT_API_FORM_ID']);
$this->assertNotInstanceOf(WP_Error::class, $result);
$this->assertSame($result, '<script async data-uid="85629c512d" src="https://cheerful-architect-3237.ck.page/85629c512d/index.js" data-jetpack-boost="ignore" data-no-defer="1" nowprocket></script>');
$this->assertSame($result, '<script async data-uid="85629c512d" src="https://cheerful-architect-3237.kit.com/85629c512d/index.js" data-jetpack-boost="ignore" data-no-defer="1" nowprocket></script>');
}

/**
Expand Down

0 comments on commit 16181fb

Please sign in to comment.