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
791 stars 114 forks source link

[BUG] WebDriver missing #217

Closed webappick closed 2 years ago

webappick commented 2 years ago

I am having the issue below for testing

Scenario -- WebDriver::debugWebDriverLogs method has been called when webDriver is not set WebDriver::_saveScreenshot method has been called when webDriver is not set WebDriver::_savePageSource method has been called when webDriver is not set Screenshot and page source were saved into '/Users/webappick-imac-m1-pc1/Documents/sites/seoscore/wp-content/plugins/seoscore/tests/_output/' dir

Mte90 commented 2 years ago

Do you have chromedriver or something similar?

As https://codeception.com/docs/modules/WebDriver without many tests are not executed.

webappick commented 2 years ago

chromedriver is install.

Can you tell me where to configure or load webDriver?

this issue is only for acceptance testing

Mte90 commented 2 years ago

You need to execute it manually as codeception doesn't do it for you.

You can see how on https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/tests.sh#L11