From 396acf3bbbe00a192cb0ea0a9ccf91b1d8d2850b Mon Sep 17 00:00:00 2001 From: Fuwn <50817549+Fuwn@users.noreply.github.com> Date: Sat, 24 Jan 2026 13:09:50 +0000 Subject: Initial commit Created from https://vercel.com/new --- cypress/support/index.d.ts | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 cypress/support/index.d.ts (limited to 'cypress/support/index.d.ts') diff --git a/cypress/support/index.d.ts b/cypress/support/index.d.ts new file mode 100644 index 0000000..b630269 --- /dev/null +++ b/cypress/support/index.d.ts @@ -0,0 +1,56 @@ +/// +/* global JQuery */ + +declare namespace Cypress { + interface Chainable { + /** + * Custom command to select DOM element by data-test attribute. + * @example cy.getDataTest('greeting') + */ + getDataTest(value: string): Chainable>; + /** + * Custom command to logout through UI. + * @example cy.logout() + */ + logout(): Chainable>; + /** + * Custom command to login user into the app. + * @example cy.login('admin', 'password) + */ + login(username: string, password: string): Chainable>; + /** + * Custom command to create a website + * @example cy.addWebsite('test', 'test.com') + */ + addWebsite(name: string, domain: string): Chainable>; + /** + * Custom command to delete a website + * @example cy.deleteWebsite('02d89813-7a72-41e1-87f0-8d668f85008b') + */ + deleteWebsite(websiteId: string): Chainable>; + /** + * Custom command to create a website + * @example cy.deleteWebsite('02d89813-7a72-41e1-87f0-8d668f85008b') + */ + /** + * Custom command to create a user + * @example cy.addUser('cypress', 'password', 'User') + */ + addUser(username: string, password: string, role: string): Chainable>; + /** + * Custom command to delete a user + * @example cy.deleteUser('02d89813-7a72-41e1-87f0-8d668f85008b') + */ + deleteUser(userId: string): Chainable>; + /** + * Custom command to create a team + * @example cy.addTeam('cypressTeam') + */ + addTeam(name: string): Chainable>; + /** + * Custom command to create a website + * @example cy.deleteTeam('02d89813-7a72-41e1-87f0-8d668f85008b') + */ + deleteTeam(teamId: string): Chainable>; + } +} -- cgit v1.2.3