Skip to content

Commit

Permalink
set cypress config
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHernandez-QA committed Nov 29, 2024
1 parent 0ecc961 commit f34bdd0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 1-Authentication/1-sign-in/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
watchForFileChanges: false,
experimentalModifyObstructiveThirdPartyCode: true,
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
7 changes: 7 additions & 0 deletions 1-Authentication/1-sign-in/cypress/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// <reference types="cypress" />

declare namespace Cypress {
interface Chainable {
loginToAAD(username: string, password: string): Chainable<any>
}
}
20 changes: 20 additions & 0 deletions 1-Authentication/1-sign-in/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"baseUrl": "/",
"module": "commonjs",
"moduleResolution": "node",
"preserveValueImports": false,
"target": "es5",
"lib": [
"es5",
"dom"
],
"types": [
"cypress",
"node"
]
},
"include": [
"**/*.ts"
]
}

0 comments on commit f34bdd0

Please sign in to comment.