Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Create wc-logs folder with permissions #192

Merged
merged 3 commits into from
Sep 20, 2024
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
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ jobs:
sudo chmod g+w ${{ env.PLUGIN_DIR }}
sudo chown www-data:www-data ${{ env.PLUGIN_DIR }}

# This ensures WooCommerce log files can be written to.
- name: Set Permissions for WooCommerce Logs Directory
run: |
sudo mkdir ${{ env.ROOT_DIR }}/wp-content/uploads/wc-logs
sudo chmod g+w ${{ env.ROOT_DIR }}/wp-content/uploads/wc-logs
sudo chown www-data:www-data ${{ env.ROOT_DIR }}/wp-content/uploads/wc-logs

# Build Codeception Tests.
- name: Build Tests
working-directory: ${{ env.PLUGIN_DIR }}
Expand Down
2 changes: 2 additions & 0 deletions tests/_support/Helper/Acceptance/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ public function wooCommerceCheckoutWithProduct($I, $productID, $productName, $em
// Check that no WooCommerce, PHP warnings or notices were output.
$I->checkNoWarningsAndNoticesOnScreen($I);

$I->wait(3);

// Complete Billing Details.
switch ($useLegacyCheckout) {
// Legacy Checkout Shortcode.
Expand Down
Loading