Closed ihorvorotnov closed 3 years ago
Prerequisites (mark completed items with an [x]):
Describe the bug
$I->amOnPage( '/wp-admin/admin.php?page=plugin-name' ); will fail if WordPress is installed in its own directory.
$I->amOnPage( '/wp-admin/admin.php?page=plugin-name' );
See https://github.com/wppunk/WPPlugin/blob/master/.tests/php/acceptance/SettingsCest.php#L32
Use $I->amOnAdminPage( '/admin.php?page=plugin-name' ); instead. See docs.
$I->amOnAdminPage( '/admin.php?page=plugin-name' );
Expected behavior
Tests should work fine on any official / valid WordPress install types.
Actual behavior
If WordPress is installed in its own directory, acceptance tests will fail to execute.
Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.) Steps to reproduce the bug:
WordPress Environment
Any WordPress version installed in its own directory.
Prerequisites (mark completed items with an [x]):
Describe the bug
$I->amOnPage( '/wp-admin/admin.php?page=plugin-name' );
will fail if WordPress is installed in its own directory.See https://github.com/wppunk/WPPlugin/blob/master/.tests/php/acceptance/SettingsCest.php#L32
Use
$I->amOnAdminPage( '/admin.php?page=plugin-name' );
instead. See docs.Expected behavior
Tests should work fine on any official / valid WordPress install types.
Actual behavior
If WordPress is installed in its own directory, acceptance tests will fail to execute.
Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.) Steps to reproduce the bug:
WordPress Environment
Any WordPress version installed in its own directory.