WPBP / WordPress-Plugin-Boilerplate-Powered

Wordpress Plugin Boilerplate but Powered with examples and a generator!
https://wpbp.github.io/
GNU General Public License v3.0
782 stars 116 forks source link

[BUG] Default WPBrowser & WPWebDriver admin password is wrong #197

Closed LucasDemea closed 2 years ago

LucasDemea commented 2 years ago

When running the base test suite, $I->loginAsAdmin() fails because admin password password is not the one exported in the db dump. I found that admin is the password used.

After changing the admin password in codeception config the test fails again for another reason : "Database Update Required" message gets prompted.

I guess the db dump needs an update.

LucasDemea commented 2 years ago

I must specify that I was using the db dump to populate the acceptance tests environment, and in that specific case, the default credentials were wrong. I suppose that the original expected use case is to run acceptance tests on an existing db and to customize the admin & password setting in WPBrowser & WPWebDriver sections to reflect this. In any case, the new dump.sql provided in #198 allows my use case and shouldn't cause any problems.

Mte90 commented 2 years ago

Thanks to spot this issue! Yes the dump probably needed a DB update as it was old.