Skip to content

Commit 95533c8

Browse files
Remove any sensitive data
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 159609d commit 95533c8

File tree

8 files changed

+140
-22
lines changed

8 files changed

+140
-22
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,6 @@ out
251251
**/cypress/screenshots/
252252
**/cypress/videos/
253253
**/cypress/reports/
254+
255+
# Local env vars
256+
.env

tests/functional/cypress.config.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
import { defineConfig } from 'cypress'
1+
import { defineConfig } from 'cypress';
2+
import * as dotenv from 'dotenv';
3+
dotenv.config();
24

35
export default defineConfig({
4-
defaultCommandTimeout: 20000,
5-
requestTimeout: 200000,
6-
"reporter": "cypress-mochawesome-reporter",
6+
defaultCommandTimeout: 30000,
7+
requestTimeout: 300000,
8+
reporter: 'cypress-mochawesome-reporter',
79
e2e: {
810
// baseUrl: 'http://localhost:1234',
911
specPattern: 'cypress/e2e/**/**/*.{js,jsx,ts,tsx}',
10-
} ,
11-
"env": {
12-
"file": "cypress.env.json"
12+
},
13+
env: {
14+
APP_URL: process.env.APP_URL,
15+
AUTH0_TOKEN_API: process.env.AUTH0_TOKEN_API,
16+
AUTH0_USER_NAME: process.env.AUTH0_USER_NAME,
17+
AUTH0_PASSWORD: process.env.AUTH0_PASSWORD,
18+
LFX_API_TOKEN: process.env.LFX_API_TOKEN,
19+
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
20+
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
21+
CYPRESS_ENV: process.env.CYPRESS_ENV,
1322
}
14-
})
23+
});
24+

tests/functional/cypress.env.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/functional/package-lock.json

Lines changed: 76 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/functional/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"devDependencies": {
2525
"@types/node": "^20.5.0",
2626
"cypress": "^12.17.3",
27+
"cypress-dotenv": "^3.0.1",
2728
"typescript": "^5.1.6"
2829
},
2930
"dependencies": {

tests/functional/run-dev-cli.sh

100644100755
File mode changed.

tests/functional/run-local-cli.sh

100644100755
File mode changed.

tests/functional/yarn.lock

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ camelcase@^5.0.0:
265265
resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz"
266266
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
267267

268-
camelcase@^6.0.0:
268+
camelcase@^6.0.0, camelcase@^6.3.0:
269269
version "6.3.0"
270270
resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz"
271271
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
@@ -405,6 +405,15 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.6:
405405
shebang-command "^2.0.0"
406406
which "^2.0.1"
407407

408+
cypress-dotenv@^3.0.1:
409+
version "3.0.1"
410+
resolved "https://registry.npmjs.org/cypress-dotenv/-/cypress-dotenv-3.0.1.tgz"
411+
integrity sha512-k1EGr8JJZdUxTsV7MbnVKGhgiU2q8LsFdDfGfmvofAQTODNhiHnqP7Hp8Cy7fhzVYb/7rkGcto0tPLLr2QCggA==
412+
dependencies:
413+
camelcase "^6.3.0"
414+
dotenv-parse-variables "^2.0.0"
415+
lodash.clonedeep "^4.5.0"
416+
408417
cypress-mochawesome-reporter@^3.5.1:
409418
version "3.8.4"
410419
resolved "https://registry.npmjs.org/cypress-mochawesome-reporter/-/cypress-mochawesome-reporter-3.8.4.tgz"
@@ -416,7 +425,7 @@ cypress-mochawesome-reporter@^3.5.1:
416425
mochawesome-merge "^4.2.1"
417426
mochawesome-report-generator "^6.2.0"
418427

419-
cypress@^12.17.3, cypress@>=6.2.0:
428+
cypress@^12.17.3, "cypress@>= 10.x", cypress@>=6.2.0:
420429
version "12.17.3"
421430
resolved "https://registry.npmjs.org/cypress/-/cypress-12.17.3.tgz"
422431
integrity sha512-/R4+xdIDjUSLYkiQfwJd630S81KIgicmQOLXotFxVXkl+eTeVO+3bHXxdi5KBh/OgC33HWN33kHX+0tQR/ZWpg==
@@ -488,7 +497,7 @@ debug@^3.1.0:
488497
dependencies:
489498
ms "^2.1.1"
490499

491-
debug@^4.1.1, debug@^4.3.4, debug@^4.3.5:
500+
debug@^4.1.1, debug@^4.3.1, debug@^4.3.4, debug@^4.3.5:
492501
version "4.4.1"
493502
resolved "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz"
494503
integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==
@@ -520,6 +529,19 @@ diff@^7.0.0:
520529
resolved "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz"
521530
integrity sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==
522531

532+
dotenv-parse-variables@^2.0.0:
533+
version "2.0.0"
534+
resolved "https://registry.npmjs.org/dotenv-parse-variables/-/dotenv-parse-variables-2.0.0.tgz"
535+
integrity sha512-/Tezlx6xpDqR6zKg1V4vLCeQtHWiELhWoBz5A/E0+A1lXN9iIkNbbfc4THSymS0LQUo8F1PMiIwVG8ai/HrnSA==
536+
dependencies:
537+
debug "^4.3.1"
538+
is-string-and-not-blank "^0.0.2"
539+
540+
"dotenv@>= 10.x":
541+
version "17.2.1"
542+
resolved "https://registry.npmjs.org/dotenv/-/dotenv-17.2.1.tgz"
543+
integrity sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==
544+
523545
eastasianwidth@^0.2.0:
524546
version "0.2.0"
525547
resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz"
@@ -926,6 +948,18 @@ is-stream@^2.0.0:
926948
resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz"
927949
integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==
928950

951+
is-string-and-not-blank@^0.0.2:
952+
version "0.0.2"
953+
resolved "https://registry.npmjs.org/is-string-and-not-blank/-/is-string-and-not-blank-0.0.2.tgz"
954+
integrity sha512-FyPGAbNVyZpTeDCTXnzuwbu9/WpNXbCfbHXLpCRpN4GANhS00eEIP5Ef+k5HYSNIzIhdN9zRDoBj6unscECvtQ==
955+
dependencies:
956+
is-string-blank "^1.0.1"
957+
958+
is-string-blank@^1.0.1:
959+
version "1.0.1"
960+
resolved "https://registry.npmjs.org/is-string-blank/-/is-string-blank-1.0.1.tgz"
961+
integrity sha512-9H+ZBCVs3L9OYqv8nuUAzpcT9OTgMD1yAWrG7ihlnibdkbtB850heAmYWxHuXc4CHy4lKeK69tN+ny1K7gBIrw==
962+
929963
is-typedarray@~1.0.0:
930964
version "1.0.0"
931965
resolved "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz"
@@ -1046,6 +1080,11 @@ locate-path@^6.0.0:
10461080
dependencies:
10471081
p-locate "^5.0.0"
10481082

1083+
lodash.clonedeep@^4.5.0:
1084+
version "4.5.0"
1085+
resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz"
1086+
integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==
1087+
10491088
lodash.isempty@^4.4.0:
10501089
version "4.4.0"
10511090
resolved "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz"

0 commit comments

Comments
 (0)