Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix-tests-doing-it-wrong-notice'…
Browse files Browse the repository at this point in the history
… into add-block-visibility-support-non-inline-forms
  • Loading branch information
n7studios committed Nov 25, 2024
2 parents 3650bb1 + 0a7c4a6 commit 826b26f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ jobs:
working-directory: ${{ env.ROOT_DIR }}
run: wp-cli plugin install ${{ env.INSTALL_PLUGINS_URLS }}

# Activates the Disable `_load_textdomain_just_in_time` `doing_it_wrong` notice Plugin,
# to prevent _load_textdomain_just_in_time PHP notices in WordPress 6.7+ due to third
# party Plugins.
- name: Activate "Disable `_load_textdomain_just_in_time` `doing_it_wrong` notice Plugin"
working-directory: ${{ env.ROOT_DIR }}
run: wp-cli plugin activate disable-doing-it-wrong-notices.php

# These should be stored as a separated list of URLs in the repository Settings > Secrets > Repository Secret > CONVERTKIT_PAID_PLUGIN_URLS.
# We cannot include the URLs in this file, as they're not Plugins we are permitted to distribute.
- name: Install Paid Third Party WordPress Plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ public function testFormShortcodeWithPerfmattersPlugin(AcceptanceTester $I)
$I->setupConvertKitPluginResources($I);

// Activate Perfmatters Plugin.
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'perfmatters');

// Enable Defer and Delay JavaScript.
Expand Down Expand Up @@ -700,6 +701,7 @@ public function testFormShortcodeWithPerfmattersPlugin(AcceptanceTester $I)

// Deactivate Perfmatters Plugin.
$I->deactivateThirdPartyPlugin($I, 'perfmatters');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
}

/**
Expand Down Expand Up @@ -770,6 +772,7 @@ public function testFormShortcodeWithWPRocketPlugin(AcceptanceTester $I)
$I->setupConvertKitPluginResources($I);

// Activate WP Rocket Plugin.
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'wp-rocket');

// Configure WP Rocket.
Expand Down Expand Up @@ -806,6 +809,7 @@ public function testFormShortcodeWithWPRocketPlugin(AcceptanceTester $I)

// Deactivate WP Rocket Plugin.
$I->deactivateThirdPartyPlugin($I, 'wp-rocket');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
}

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/integrations/other/DiviBroadcastsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DiviBroadcastsCest
public function _before(AcceptanceTester $I)
{
$I->activateConvertKitPlugin($I);
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'divi-builder');
}

Expand Down Expand Up @@ -173,6 +174,7 @@ public function testBroadcastsModuleInFrontendEditorWhenNoBroadcasts(AcceptanceT
public function _passed(AcceptanceTester $I)
{
$I->deactivateThirdPartyPlugin($I, 'divi-builder');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->deactivateConvertKitPlugin($I);
$I->resetConvertKitPlugin($I);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/integrations/other/DiviFormCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DiviFormCest
public function _before(AcceptanceTester $I)
{
$I->activateConvertKitPlugin($I);
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'divi-builder');
}

Expand Down Expand Up @@ -228,6 +229,7 @@ public function testFormModuleWithNoFormParameter(AcceptanceTester $I)
public function _passed(AcceptanceTester $I)
{
$I->deactivateThirdPartyPlugin($I, 'divi-builder');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->deactivateConvertKitPlugin($I);
$I->resetConvertKitPlugin($I);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/integrations/other/DiviFormTriggerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DiviFormTriggerCest
public function _before(AcceptanceTester $I)
{
$I->activateConvertKitPlugin($I);
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'divi-builder');
}

Expand Down Expand Up @@ -193,6 +194,7 @@ public function testFormTriggerModuleWithNoFormParameter(AcceptanceTester $I)
public function _passed(AcceptanceTester $I)
{
$I->deactivateThirdPartyPlugin($I, 'divi-builder');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->deactivateConvertKitPlugin($I);
$I->resetConvertKitPlugin($I);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/integrations/other/DiviProductCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DiviProductCest
public function _before(AcceptanceTester $I)
{
$I->activateConvertKitPlugin($I);
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'divi-builder');
}

Expand Down Expand Up @@ -186,6 +187,7 @@ public function testProductModuleWithNoProductParameter(AcceptanceTester $I)
public function _passed(AcceptanceTester $I)
{
$I->deactivateThirdPartyPlugin($I, 'divi-builder');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->deactivateConvertKitPlugin($I);
$I->resetConvertKitPlugin($I);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/landing-pages/PageLandingPageCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ public function testAddNewPageUsingDefinedLandingPageWithPerfmattersPlugin(Accep
$I->setupConvertKitPluginResources($I);

// Activate Perfmatters Plugin.
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
$I->activateThirdPartyPlugin($I, 'perfmatters');

// Enable Lazy Loading.
Expand Down Expand Up @@ -373,6 +374,7 @@ public function testAddNewPageUsingDefinedLandingPageWithPerfmattersPlugin(Accep

// Deactivate Perfmatters Plugin.
$I->deactivateThirdPartyPlugin($I, 'perfmatters');
$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
}

/**
Expand Down

0 comments on commit 826b26f

Please sign in to comment.