admin管理员组文章数量:1296392
I'm trying to set up a test suite for our Gutenberg blocks plugin using the e2e-test-utils. Our environment is a multi-site WP install and I pass the WP_BASE_URL, WP_USERNAME and WP_PASSWORD as environment variables, so they are not stored anywhere in the repo.
I'm trying to make sure that the plugin I am testing on is activated using the asynchronous activatePlugin('name-of--our-plugin')
function from the @wordpress/e2e-test-utils
package. The problem is that this function assumes there is an existing administrator account with username: admin
and password: password
. This is not the case and because of our CI, I'd prefer not to have that kind of administrator account.
Is there a way to pass to the script administrator's credentials as environment variables just like I do it with the user? The admin user appears to be hardcoded in the config.js file.
本文标签: block editorHow to change the adminpassword when using the E2E Test Utils for Gutenberg
版权声明:本文标题:block editor - How to change the adminpassword when using the E2E Test Utils for Gutenberg 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741622449a2388889.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论