Skip to content

Commit

Permalink
remove default comment from cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHernandez-QA committed Dec 1, 2024
1 parent ed1bf69 commit 07d7a60
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions 1-Authentication/1-sign-in/cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,43 +1,6 @@
// @ts-check
///<reference path="../global.d.ts" />

// ***********************************************
// This example commands.ts shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
//
// declare global {
// namespace Cypress {
// interface Chainable {
// login(email: string, password: string): Chainable<void>
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
// }
// }
// }

function loginViaAAD(username: string, password: string) {
cy.visit('/')
cy.get('button#signIn').click()
Expand Down

0 comments on commit 07d7a60

Please sign in to comment.