From f34bdd0d2b2d89e297edef0d94b487c72f66e05f Mon Sep 17 00:00:00 2001 From: Leonardo Hernandez Date: Thu, 28 Nov 2024 22:10:19 -0300 Subject: [PATCH] set cypress config --- 1-Authentication/1-sign-in/cypress.config.ts | 12 +++++++++++ .../1-sign-in/cypress/global.d.ts | 7 +++++++ 1-Authentication/1-sign-in/tsconfig.json | 20 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 1-Authentication/1-sign-in/cypress.config.ts create mode 100644 1-Authentication/1-sign-in/cypress/global.d.ts create mode 100644 1-Authentication/1-sign-in/tsconfig.json diff --git a/1-Authentication/1-sign-in/cypress.config.ts b/1-Authentication/1-sign-in/cypress.config.ts new file mode 100644 index 0000000..48bd213 --- /dev/null +++ b/1-Authentication/1-sign-in/cypress.config.ts @@ -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 + }, + }, +}); diff --git a/1-Authentication/1-sign-in/cypress/global.d.ts b/1-Authentication/1-sign-in/cypress/global.d.ts new file mode 100644 index 0000000..6c6f398 --- /dev/null +++ b/1-Authentication/1-sign-in/cypress/global.d.ts @@ -0,0 +1,7 @@ +/// + +declare namespace Cypress { + interface Chainable { + loginToAAD(username: string, password: string): Chainable + } +} \ No newline at end of file diff --git a/1-Authentication/1-sign-in/tsconfig.json b/1-Authentication/1-sign-in/tsconfig.json new file mode 100644 index 0000000..0e02efe --- /dev/null +++ b/1-Authentication/1-sign-in/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "baseUrl": "/", + "module": "commonjs", + "moduleResolution": "node", + "preserveValueImports": false, + "target": "es5", + "lib": [ + "es5", + "dom" + ], + "types": [ + "cypress", + "node" + ] + }, + "include": [ + "**/*.ts" + ] +} \ No newline at end of file