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

Fix local environment path #1547

Merged
merged 4 commits into from
Aug 15, 2024
Merged

Conversation

tharsheblows
Copy link
Contributor

@tharsheblows tharsheblows commented Aug 7, 2024

Fixes #1545

Fixes the path to the plugin file and adds e2e tests which show the network admin UI in the network activated and deactivated states.

It also introduces a setup step for the e2e tests which logs a user in as admin and deactivates the plugin so we know which state we're in when starting the tests.

To run all of the e2e tests, use npm run tests-e2e

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).
  • I have added phpunit tests.

Release Changelog

  • Fix: $this->plugin->is_network_activated() works correctly now on local environments.

Copy link
Contributor

@delawski delawski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I left just a minor suggestion and I'm approving already.

tests/e2e/network-activated.spec.js Outdated Show resolved Hide resolved
tests/e2e/network-activated.spec.js Outdated Show resolved Hide resolved
tharsheblows and others added 2 commits August 15, 2024 10:33
Co-authored-by: Piotr Delawski <[email protected]>
Co-authored-by: Piotr Delawski <[email protected]>
@tharsheblows tharsheblows merged commit b48d749 into develop Aug 15, 2024
2 checks passed
@tharsheblows tharsheblows deleted the fix/1545-local-environment-path branch August 15, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix local environment check on the plugin being network activated
2 participants