-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'workspace/v16.0.0' into dev/john/native-preferences
- Loading branch information
Showing
26 changed files
with
1,581 additions
and
1,601 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
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,38 @@ | ||
name: Workspace Platform Starter - E2E Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
e2e: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org | ||
scope: '@openfin' | ||
|
||
- name: Restore root node_modules from cache | ||
id: node-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: node-modules-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm ci | ||
|
||
- name: Run Workspace Platform Starter E2E Tests | ||
working-directory: ./how-to/workspace-platform-starter | ||
run: | | ||
npm run build | ||
npm run start & npm run e2e |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Check Tests run | ||
name: Workspace Platform Starter - Unit Tests | ||
|
||
on: | ||
pull_request: | ||
|
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 |
---|---|---|
|
@@ -17,12 +17,12 @@ | |
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
"devDependencies": { | ||
"@openfin/automation-cli": "^1.1.11", | ||
"@openfin/automation-helpers": "^1.1.11", | ||
"@openfin/automation-native": "^1.1.11", | ||
"@openfin/automation-cli": "^1.2.0", | ||
"@openfin/automation-helpers": "^1.2.0", | ||
"@openfin/automation-native": "^1.2.0", | ||
"chai": "4.3.10", | ||
"jasmine-pretty-html-reporter": "0.2.5", | ||
"jest-html-reporters": "3.1.4", | ||
"jest-html-reporters": "3.1.5", | ||
"mochawesome": "7.1.3" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -17,9 +17,9 @@ | |
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
"devDependencies": { | ||
"@openfin/automation-cli": "^1.1.11", | ||
"@openfin/automation-helpers": "^1.1.11", | ||
"@openfin/automation-native": "^1.1.11", | ||
"@openfin/automation-cli": "^1.2.0", | ||
"@openfin/automation-helpers": "^1.2.0", | ||
"@openfin/automation-native": "^1.2.0", | ||
"@types/chai": "4.3.11", | ||
"chai": "4.3.10" | ||
} | ||
|
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 |
---|---|---|
|
@@ -15,9 +15,9 @@ | |
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
"devDependencies": { | ||
"@openfin/automation-cli": "^1.1.11", | ||
"@openfin/automation-helpers": "^1.1.11", | ||
"@openfin/automation-native": "^1.1.11", | ||
"@openfin/automation-cli": "^1.2.0", | ||
"@openfin/automation-helpers": "^1.2.0", | ||
"@openfin/automation-native": "^1.2.0", | ||
"chai": "4.3.10" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -11,8 +11,8 @@ | |
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
"devDependencies": { | ||
"@openfin/automation-helpers": "^1.1.11", | ||
"@openfin/automation-native": "^1.1.11", | ||
"@openfin/automation-helpers": "^1.2.0", | ||
"@openfin/automation-native": "^1.2.0", | ||
"chai": "4.3.10", | ||
"chromedriver": "116.0.0", | ||
"fkill": "7.2.1", | ||
|
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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
"author": "[email protected]", | ||
"license": "SEE LICENSE IN LICENSE.MD", | ||
"dependencies": { | ||
"@microsoft/microsoft-graph-types": "^2.38.0", | ||
"@microsoft/microsoft-graph-types": "^2.40.0", | ||
"@openfin/microsoft365": "1.0.1", | ||
"@openfin/workspace": "16.0.6", | ||
"@openfin/workspace-platform": "16.0.6" | ||
|
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
how-to/workspace-platform-starter/docs/how-to-test-your-ui.md
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,28 @@ | ||
> **_:information_source: OpenFin Workspace:_** [OpenFin Workspace](https://www.openfin.co/workspace/) is a commercial product and this repo is for evaluation purposes (See [LICENSE.MD](../LICENSE.MD)). Use of the OpenFin Container and OpenFin Workspace components is only granted pursuant to a license from OpenFin (see [manifest](../public/manifest.fin.json)). Please [**contact us**](https://www.openfin.co/workspace/poc/) if you would like to request a developer evaluation key or to discuss a production license. | ||
[<- Back to Table Of Contents](../README.md) | ||
|
||
# How To Test Your UI | ||
|
||
Testing your OpenFin platform UI can be achieved using the OpenFin Automation tools. | ||
|
||
For more information on the OpenFin automation tools see the following packages. | ||
|
||
- [@openfin/automation-cli](https://www.npmjs.com/package/@openfin/automation-cli) | ||
- [@openfin/automation-helpers](https://www.npmjs.com/package/@openfin/automation-helpers) | ||
|
||
There is an npm command which will execute the included e2e tests. | ||
|
||
```shell | ||
npm run e2e | ||
``` | ||
|
||
You must first make sure the local web server is serving the manifest for the application using the `npm run start` script. | ||
|
||
The tests are executed using Jest as the test runner, the example tests are in the [../e2e](../e2e/) folder. | ||
|
||
Example output from running the tests using the npm command: | ||
|
||
![How to Test in Shell](./assets/e2e-test-shell.png) | ||
|
||
[<- Back to Table Of Contents](../README.md) |
Oops, something went wrong.