Update to version 0.1.5 with testing setup, multisite compatibility, and npm scripts
This commit is contained in:
12
tests/e2e/cypress/support/commands.js
Normal file
12
tests/e2e/cypress/support/commands.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Custom Cypress commands.
|
||||
*/
|
||||
|
||||
// Login command
|
||||
Cypress.Commands.add('login', (username = 'admin', password = 'password') => {
|
||||
cy.visit('/wp-login.php');
|
||||
cy.get('#user_login').type(username);
|
||||
cy.get('#user_pass').type(password);
|
||||
cy.get('#wp-submit').click();
|
||||
cy.get('body.wp-admin').should('exist');
|
||||
});
|
||||
Reference in New Issue
Block a user