-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow interaction with the platform once navigated away from an …
…application's root page fixes #141
- Loading branch information
1 parent
6bffc7d
commit 80ddeab
Showing
20 changed files
with
186 additions
and
71 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
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
5 changes: 0 additions & 5 deletions
5
...ion-platform/testing-app/src/app/testing/custom-intent/custom-intent-panel.component.html
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...ation-platform/testing-app/src/app/testing/custom-intent/custom-intent-panel.component.ts
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...ication-platform/testing-app/src/app/testing/ping-intent/ping-intent-panel.component.html
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,7 @@ | ||
<input class="e2e-ping-message" #input placeholder="Enter ping message."/> | ||
|
||
<button (click)="onPing(input.value)" class="e2e-ping">Ping</button> | ||
|
||
<section *ngIf="result$ | async as result"> | ||
Result: <output class="e2e-result">{{result}}</output> | ||
</section> |
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
...plication-platform/testing-app/src/app/testing/ping-intent/ping-intent-panel.component.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,33 @@ | ||
/* | ||
* Copyright (c) 2018 Swiss Federal Railways | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
import { NilQualifier } from '@scion/workbench-application-platform.api'; | ||
import { first } from 'rxjs/operators'; | ||
import { Observable } from 'rxjs'; | ||
import { IntentService } from '@scion/workbench-application.core'; | ||
|
||
@Component({ | ||
selector: 'app-ping-intent-panel', | ||
templateUrl: './ping-intent-panel.component.html', | ||
styleUrls: ['./ping-intent-panel.component.scss'], | ||
}) | ||
export class PingIntentPanelComponent { | ||
|
||
public result$: Observable<string>; | ||
|
||
constructor(private _intentService: IntentService) { | ||
} | ||
|
||
public onPing(message: string): void { | ||
this.result$ = this._intentService.issueIntent$<string>('ping', NilQualifier, message) | ||
.pipe(first()); | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
...plication-platform/testing-app/src/app/testing/view-c985a55b/view-c985a55b.component.html
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,2 @@ | ||
<app-view-navigation-panel></app-view-navigation-panel> | ||
<app-ping-intent-panel></app-ping-intent-panel> |
23 changes: 23 additions & 0 deletions
23
...application-platform/testing-app/src/app/testing/view-c985a55b/view-c985a55b.component.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,23 @@ | ||
/* | ||
* Copyright (c) 2018 Swiss Federal Railways | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
import {Component} from '@angular/core'; | ||
import {provideWorkbenchView} from '@scion/workbench-application.angular'; | ||
|
||
@Component({ | ||
selector: 'app-view-c8e40918', | ||
templateUrl: './view-c985a55b.component.html', | ||
styles: [':host { padding: 1em }'], | ||
providers: [ | ||
provideWorkbenchView(ViewC985a55bComponent) | ||
] | ||
}) | ||
export class ViewC985a55bComponent { | ||
} |
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
30 changes: 30 additions & 0 deletions
30
projects/e2e/workbench-application-platform/src/page-object/testcase-c985a55b-view.po.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,30 @@ | ||
/* | ||
* Copyright (c) 2018 Swiss Federal Railways | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
import { ViewNavigationPanelPO } from './view-navigation-panel.po'; | ||
import { HostAppPO } from './host-app.po'; | ||
import { PingIntentPanelPO } from './ping-intent-panel-po'; | ||
|
||
const E2E_TESTING_VIEW_CONTEXT: string[] = ['e2e-testing-app', 'e2e-view', 'e2e-view-c985a55b']; | ||
|
||
export class TestcaseC985a55bViewPO { | ||
|
||
public async navigateTo(): Promise<void> { | ||
await new HostAppPO().clickActivityItem('e2e-activity-c985a55b'); | ||
} | ||
|
||
public getViewNavigationPanelPO(): ViewNavigationPanelPO { | ||
return new ViewNavigationPanelPO(E2E_TESTING_VIEW_CONTEXT); | ||
} | ||
|
||
public getPingPanelPO(): PingIntentPanelPO { | ||
return new PingIntentPanelPO(E2E_TESTING_VIEW_CONTEXT); | ||
} | ||
} |
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
Oops, something went wrong.