-
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.
- Loading branch information
Showing
20 changed files
with
1,462 additions
and
1,574 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
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) |
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,5 @@ | ||
module.exports = { | ||
transform: { | ||
'^.+\\.(ts|tsx)?$': ['ts-jest', { diagnostics: { ignoreCodes: ['TS151001'] } }] | ||
} | ||
}; |
24 changes: 24 additions & 0 deletions
24
how-to/workspace-platform-starter/e2e/tests/platform.spec.ts
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,24 @@ | ||
import { OpenFinProxy, OpenFinSystem, OpenFinHome, WebDriver } from "@openfin/automation-helpers"; | ||
|
||
describe("Platform", () => { | ||
it("The runtime is ready", async () => { | ||
const isReady = await OpenFinSystem.waitForReady(10000); | ||
expect(isReady).toEqual(true); | ||
}); | ||
|
||
it("The title should be set", async () => { | ||
const title = await WebDriver.getTitle(); | ||
expect(title).toEqual("Platform Provider"); | ||
}); | ||
|
||
it("The runtime version should be set", async () => { | ||
const fin = await OpenFinProxy.fin(); | ||
const version = await fin.System.getVersion(); | ||
expect(version).toEqual("33.116.77.11"); | ||
}); | ||
|
||
it("Can open the home window", async () => { | ||
const isShown = await OpenFinHome.show(20000); | ||
expect(isShown).toEqual(true); | ||
}); | ||
}); |
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,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true | ||
} | ||
} |
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 |
---|---|---|
|
@@ -37,7 +37,8 @@ | |
"eslint": "eslint . --ext .js,.mjs,.ts", | ||
"markdownlint": "markdownlint **/*.md --ignore **/node_modules/**", | ||
"validate": "npm run prettier && npm run eslint && npm run markdownlint", | ||
"test": "jest --config ./jest.config.js" | ||
"test": "jest --config ./jest.config.js", | ||
"e2e": "of-automation http://localhost:8080/manifest.fin.json ./e2e/**/*.spec.ts --workspace 16.0.6 --testFailCount 1 --framework jest --storageFolder ./e2e/storage" | ||
}, | ||
"author": "[email protected]", | ||
"contributors": [ | ||
|
@@ -56,6 +57,9 @@ | |
"node-emoji": "^1.11.0" | ||
}, | ||
"devDependencies": { | ||
"@openfin/automation-cli": "^1.2.0", | ||
"@openfin/automation-helpers": "^1.2.0", | ||
"@openfin/automation-native": "^1.2.0", | ||
"@openfin/core": "33.77.11", | ||
"@openfin/node-adapter": "33.77.11", | ||
"@types/express": "^4.17.21", | ||
|
Oops, something went wrong.