summaryrefslogtreecommitdiff
path: root/cypress/support/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/support/index.ts')
-rw-r--r--cypress/support/index.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/cypress/support/index.ts b/cypress/support/index.ts
new file mode 100644
index 0000000000..c1bed21979
--- /dev/null
+++ b/cypress/support/index.ts
@@ -0,0 +1,19 @@
+declare global {
+ namespace Cypress {
+ interface Chainable {
+ login(username: string, password: string): Chainable<void>;
+
+ registerUser(
+ username: string,
+ password: string,
+ isAdmin?: boolean
+ ): Chainable<void>;
+
+ resetState(): Chainable<void>;
+
+ visitHome(): Chainable<void>;
+ }
+ }
+}
+
+export {}