summaryrefslogtreecommitdiff
path: root/cypress/support/commands.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/support/commands.ts')
-rw-r--r--cypress/support/commands.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts
index 281f2e6ccd..3cdf4e2087 100644
--- a/cypress/support/commands.ts
+++ b/cypress/support/commands.ts
@@ -48,6 +48,7 @@ Cypress.Commands.add('registerUser', (username, password, isAdmin = false) => {
cy.request('POST', route, {
username: username,
password: password,
+ ...(isAdmin ? { setupPassword: 'example_password_please_change_this_or_you_will_get_hacked' } : {}),
}).its('body').as(username);
});