-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
diff --git a/package.json b/package.json | ||
index d94b439..39caa6a 100644 | ||
--- a/package.json | ||
+++ b/package.json | ||
@@ -2,7 +2,8 @@ | ||
"name": "@prestashop-core/ui-testing", | ||
"version": "0.0.2", | ||
"description": "", | ||
- "files": ["/dist"], | ||
+ "main": "dist/index.js", | ||
+ "types": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"// ESLint": "To run ESLint commands", | ||
diff --git a/src/types/globals.d.ts b/src/types/globals.d.ts | ||
index 1213872..6fe60c5 100644 | ||
--- a/src/types/globals.d.ts | ||
+++ b/src/types/globals.d.ts | ||
@@ -1,6 +1,6 @@ | ||
/* eslint-disable vars-on-top, no-var */ | ||
|
||
-type GlobalInstall = { | ||
+ type GlobalInstall = { | ||
URL: string | ||
ENABLE_SSL: boolean | ||
LANGUAGE: string | ||
diff --git a/tsconfig.json b/tsconfig.json | ||
index f4e7215..bc48ef9 100644 | ||
--- a/tsconfig.json | ||
+++ b/tsconfig.json | ||
@@ -20,6 +20,7 @@ | ||
"esnext" | ||
], | ||
"baseUrl": "./", | ||
+ "rootDir": "src", | ||
"outDir": "./dist", | ||
"paths": { | ||
"@interfaces/*": [ | ||
@@ -47,7 +48,7 @@ | ||
], | ||
}, | ||
"include": [ | ||
- "src/**/*" | ||
+ "src/index.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Export data | ||
export type {PageWaitForSelectorOptionsState, WaitForNavigationWaitUntil} from '@data/types/playwright'; | ||
|
||
// Export interfaces | ||
export type {DashboardPageInterface} from '@interfaces/BO/dashboard'; | ||
export type {LoginPageInterface} from '@interfaces/BO/login'; | ||
|
||
// Export Pages | ||
export * as CommonPage from '@pages/commonPage'; | ||
export * as BOBasePage from '@pages/BO/BOBasePage'; | ||
export * as loginPage from '@pages/BO/login'; | ||
export * as dashboardPage from '@pages/BO/dashboard'; | ||
|
||
// Export utils | ||
export * as testContext from '@utils/testContext'; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters