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
1 change: 1 addition & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@ jobs:
# Run PHPStan for static analysis.
- name: Run PHPStan Static Analysis
working-directory: ${{ env.PLUGIN_DIR }}
if: ${{ matrix.php-versions == '8.0' || matrix.php-versions == '8.1' || matrix.php-versions == '8.2' || matrix.php-versions == '8.3' || matrix.php-versions == '8.4' }}
run: php vendor/bin/phpstan analyse --memory-limit=1250M
8 changes: 5 additions & 3 deletions tests/EndToEnd/general/plugin-screens/PluginIntercomCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ public function testIntercomDisplaysOnSetupWizardScreens(EndToEndTester $I)
*/
private function _seeIntercomScript(EndToEndTester $I)
{
$I->waitForElementVisible('.intercom-lightweight-app-launcher-icon');
$I->click('.intercom-lightweight-app-launcher-icon');
$I->waitForElementVisible('iframe[data-intercom-frame="true"]');
$I->seeInSource("const KIT_INTERCOM_APP_ID = 'e4n3xtxz';");
$I->seeInSource('window.intercomSettings = {');
$I->seeInSource("api_base: 'https://api-iam.intercom.io',");
$I->seeInSource('app_id: KIT_INTERCOM_APP_ID');
$I->seeInSource('(function(){var w=window;var ic=w.Intercom;');
}

/**
Expand Down