Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnman committed Nov 28, 2024
1 parent e7c1fcf commit bcf29b1
Show file tree
Hide file tree
Showing 9 changed files with 2,134 additions and 437 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Register with Home', () => {
it('The runtime version should be set', async () => {
const fin = await OpenFinProxy.fin();
const version = await fin.System.getVersion();
expect(version).to.equal('38.126.83.80');
expect(version).to.equal('40.130.100.7');
});

it('The identity should be set', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Register with Store', () => {
it('The runtime version should be set', async () => {
const fin = await OpenFinProxy.fin();
const version = await fin.System.getVersion();
expect(version).to.equal('38.126.83.80');
expect(version).to.equal('40.130.100.7');
});

it('Can open the store window', async () => {
Expand Down
4 changes: 2 additions & 2 deletions how-to/automation-testing/selenium/selenium.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ async function runMochaTests() {
}

// The version of the chromedriver in the package.json should match the runtime version from the app manifest.
// e.g. if the manifest runtime version is 38.126.83.80 then the chromedriver version should be "126.0.0"
// e.g. if the manifest runtime version is 40.130.100.7 then the chromedriver version should be "126.0.0"
const testManifestUrl =
'https://built-on-openfin.github.io/workspace-starter/workspace/v19.2.0/register-with-home/manifest.fin.json';
'https://built-on-openfin.github.io/workspace-starter/workspace/v20.0.0/register-with-home/manifest.fin.json';
const chromeDriverPort = 5678;
const devToolsPort = 9122;

Expand Down
2 changes: 1 addition & 1 deletion how-to/automation-testing/selenium/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Register with Home', () => {
it('The runtime version should be set', async () => {
const fin = await OpenFinProxy.fin();
const version = await fin.System.getVersion();
expect(version).to.equal('38.126.83.80');
expect(version).to.equal('40.130.100.7');
});

it('The identity should be set', async () => {
Expand Down
2 changes: 1 addition & 1 deletion how-to/automation-testing/wdio/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Register with Home', () => {
it('The runtime version should be set', async () => {
const fin = await OpenFinProxy.fin();
const version = await fin.System.getVersion();
expect(version).to.equal('38.126.83.80');
expect(version).to.equal('40.130.100.7');
});

it('The identity should be set', async () => {
Expand Down
4 changes: 2 additions & 2 deletions how-to/automation-testing/wdio/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const fsPromises = require('fs/promises');
const path = require('path');

// The version of the chromedriver in the package.json should match the runtime version from the app manifest.
// e.g. if the manifest runtime version is 38.126.83.80 then the chromedriver version should be '126.0.0'
// e.g. if the manifest runtime version is 40.130.100.7 then the chromedriver version should be '126.0.0'
const manifestUrl =
'https://built-on-openfin.github.io/workspace-starter/workspace/v19.2.0/register-with-home/manifest.fin.json';
'https://built-on-openfin.github.io/workspace-starter/workspace/v20.0.0/register-with-home/manifest.fin.json';
const chromeDriverPort = 5843;
const devToolsPort = 9123;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"company": "OpenFin",
"description": "A way of showing examples of what OpenFin can do.",
"icon": "http://localhost:8080/favicon.ico",
"name": "Integrate Server Authentication - Hidden Provider - v19.2.0",
"name": "Integrate Server Authentication - Hidden Provider - v20.0.0",
"target": ["desktop", "start-menu"]
},
"supportInformation": {
Expand Down
2 changes: 1 addition & 1 deletion how-to/workspace-platform-starter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## v20.0.0

## v20.0.0
## v19.2.0

- Added an example workspace platform override (see [Get User Decision For Before Unload](./client/src/modules/platform-override/get-user-decision-for-beforeunload/README.md)) that supports **get user decision for before unload**. If a platform has the setting "enableBeforeUnload": true in the platform section of their manifest then OpenFin will call a platform's getUserDecisionForBeforeUnload override if any view (app) adds an event listener `beforeunload` (e.g. `window.addEventListener("beforeunload", beforeUnloadListener);`) and calls e.preventDefault(); when the event is fired. The platform override gets a list of all the views that have prevented the default close behavior and it can make a decision on what to do. Our module is an example of how you can plug in your own custom logic. We show a dialog to get confirmation on whether or not the view/page/window should close.

Expand Down
Loading

0 comments on commit bcf29b1

Please sign in to comment.