Skip to content

Commit

Permalink
Merge pull request #174 from ConvertKit/fix-setting-debug-log-test
Browse files Browse the repository at this point in the history
Tests: Check for Log in WP_List_Table
  • Loading branch information
n7studios authored Mar 11, 2024
2 parents 44489da + fa91dd0 commit 42b0373
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"convertkit/convertkit-wordpress-libraries": "1.4.1"
},
"require-dev": {
"lucatume/wp-browser": "^3.0",
"lucatume/wp-browser": "<3.5",
"codeception/module-asserts": "^1.3",
"codeception/module-phpbrowser": "^1.0",
"codeception/module-webdriver": "^1.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/settings/SettingDebugLogCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function testDebugEnabled(AcceptanceTester $I)
// Load WooCommerce's Logs screen.
$I->amOnAdminPage('admin.php?page=wc-status&tab=logs');

// Confirm that a ConvertKit Log File exists in the dropdown selection of logs.
$I->seeInSource('<option value="convertkit-' . date('Y-m-d'));
// Confirm that a ConvertKit Log File exists in the table of logs for today's date.
$I->seeInSource('<a class="row-title" href="' . $_ENV['TEST_SITE_WP_URL'] . '/wp-admin/admin.php?page=wc-status&amp;tab=logs&amp;view=single_file&amp;file_id=convertkit-' . date('Y-m-d') . '">convertkit</a>');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-convertkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Text Domain: woocommerce-convertkit
*
* WC requires at least: 3.0
* WC tested up to: 8.5.1
* WC tested up to: 8.6.1
*/

// Bail if Plugin is already loaded.
Expand Down

0 comments on commit 42b0373

Please sign in to comment.