- Risk Assessment feature added!
-
- Now you can answer a short questionnaire, create a security profile and
- attach it to the Testrun result to complete a device verification. Also,
- it will speed up the process a lot!
-
-
-
- Go to Risk Assessment
-
+
+
+ Pilot Assessment
+
+ Pilot project support is now offered through Testrun. Follow the
+ instructions set out to get your pilot recommendation.
diff --git a/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.scss b/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.scss
index 9eb334496..c32f47a41 100644
--- a/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.scss
+++ b/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.scss
@@ -81,6 +81,17 @@
}
}
+.section-container-pilot {
+ .section-title {
+ font-weight: 500;
+ letter-spacing: 0.25px;
+ }
+ .section-content {
+ margin: 0;
+ padding-top: 9px;
+ }
+}
+
.consent-actions {
border-top: 1px solid $lighter-grey;
margin: 0 -16px;
diff --git a/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.spec.ts b/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.spec.ts
index c538554f2..56fd7b246 100644
--- a/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.spec.ts
+++ b/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.spec.ts
@@ -46,7 +46,7 @@ describe('ConsentDialogComponent', () => {
});
fixture = TestBed.createComponent(ConsentDialogComponent);
component = fixture.componentInstance;
- component.data = { version: NEW_VERSION, hasRiskProfiles: false };
+ component.data = { version: NEW_VERSION };
component.optOut = false;
fixture.detectChanges();
compiled = fixture.nativeElement as HTMLElement;
@@ -61,7 +61,7 @@ describe('ConsentDialogComponent', () => {
const confirmButton = compiled.querySelector(
'.confirm-button'
) as HTMLButtonElement;
- const dialogRes = { grant: true, isNavigateToRiskAssessment: undefined };
+ const dialogRes = { grant: true };
confirmButton?.click();
@@ -77,7 +77,7 @@ describe('ConsentDialogComponent', () => {
const confirmButton = compiled.querySelector(
'.confirm-button'
) as HTMLButtonElement;
- const dialogRes = { grant: false, isNavigateToRiskAssessment: undefined };
+ const dialogRes = { grant: false };
confirmButton?.click();
@@ -99,7 +99,7 @@ describe('ConsentDialogComponent', () => {
describe('with new version available', () => {
beforeEach(() => {
- component.data = { version: NEW_VERSION, hasRiskProfiles: false };
+ component.data = { version: NEW_VERSION };
fixture.detectChanges();
});
@@ -122,7 +122,7 @@ describe('ConsentDialogComponent', () => {
describe('with no new version available', () => {
beforeEach(() => {
- component.data = { version: VERSION, hasRiskProfiles: false };
+ component.data = { version: VERSION };
fixture.detectChanges();
});
@@ -134,51 +134,4 @@ describe('ConsentDialogComponent', () => {
expect(content).toBeNull();
});
});
-
- describe('with no risk assessment profiles', () => {
- beforeEach(() => {
- component.data = { version: VERSION, hasRiskProfiles: false };
- fixture.detectChanges();
- });
-
- it('should has risk-assessment content', () => {
- const content = compiled.querySelector(
- '.section-content.risk-assessment'
- ) as HTMLElement;
-
- const innerContent = content.innerHTML.trim();
- expect(innerContent).toContain(
- 'Now you can answer a short questionnaire'
- );
- });
-
- it('should close dialog with isNavigateToRiskAssessment as true when click "confirm"', () => {
- const closeSpy = spyOn(component.dialogRef, 'close');
- const riskAssessmentBtn = compiled.querySelector(
- '.risk-assessment-button'
- ) as HTMLButtonElement;
- const dialogRes = { grant: true, isNavigateToRiskAssessment: true };
-
- riskAssessmentBtn?.click();
-
- expect(closeSpy).toHaveBeenCalledWith(dialogRes);
-
- closeSpy.calls.reset();
- });
- });
-
- describe('with risk assessment profiles', () => {
- beforeEach(() => {
- component.data = { version: VERSION, hasRiskProfiles: true };
- fixture.detectChanges();
- });
-
- it('should not has risk-assessment content', () => {
- const content = compiled.querySelector(
- '.section-content.risk-assessment'
- ) as HTMLElement;
-
- expect(content).toBeNull();
- });
- });
});
diff --git a/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.ts b/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.ts
index 8b27a8961..e84659748 100644
--- a/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.ts
+++ b/modules/ui/src/app/components/version/consent-dialog/consent-dialog.component.ts
@@ -29,7 +29,6 @@ import { FormsModule } from '@angular/forms';
type DialogData = {
version: Version;
- hasRiskProfiles: boolean;
};
@Component({
@@ -54,11 +53,10 @@ export class ConsentDialogComponent {
@Inject(MAT_DIALOG_DATA) public data: DialogData
) {}
- confirm(optOut: boolean, isNavigateToRiskAssessment?: boolean) {
+ confirm(optOut: boolean) {
// dialog should be closed with opposite value to grant or deny access to GA
const dialogResult: ConsentDialogResult = {
grant: !optOut,
- isNavigateToRiskAssessment,
};
this.dialogRef.close(dialogResult);
}
diff --git a/modules/ui/src/app/components/version/version.component.ts b/modules/ui/src/app/components/version/version.component.ts
index 186c3bcf6..d56e1cdd4 100644
--- a/modules/ui/src/app/components/version/version.component.ts
+++ b/modules/ui/src/app/components/version/version.component.ts
@@ -48,9 +48,7 @@ declare const gtag: Function;
})
export class VersionComponent implements OnInit, OnDestroy {
@Input() consentShown!: boolean;
- @Input() hasRiskProfiles!: boolean;
@Output() consentShownEvent = new EventEmitter();
- @Output() navigateToRiskAssessmentEvent = new EventEmitter();
version$!: Observable;
private destroy$: Subject = new Subject();
@@ -86,7 +84,7 @@ export class VersionComponent implements OnInit, OnDestroy {
}
openConsentDialog(version: Version) {
- const dialogData = { version, hasRiskProfiles: this.hasRiskProfiles };
+ const dialogData = { version };
const dialogRef = this.dialog.open(ConsentDialogComponent, {
ariaLabel: 'Welcome to Testrun modal window',
data: dialogData,
@@ -106,10 +104,6 @@ export class VersionComponent implements OnInit, OnDestroy {
gtag('consent', 'update', {
analytics_storage: dialogResult.grant ? 'granted' : 'denied',
});
-
- if (dialogResult.isNavigateToRiskAssessment) {
- this.navigateToRiskAssessmentEvent.emit();
- }
});
}
diff --git a/modules/ui/src/app/model/callout-type.ts b/modules/ui/src/app/model/callout-type.ts
index c784b46f6..c8f86d1c4 100644
--- a/modules/ui/src/app/model/callout-type.ts
+++ b/modules/ui/src/app/model/callout-type.ts
@@ -15,6 +15,7 @@
*/
export enum CalloutType {
Info = 'info',
+ InfoPilot = 'info pilot',
Check = 'check_circle',
Warning = 'warning_amber',
Error = 'error',
diff --git a/modules/ui/src/app/model/version.ts b/modules/ui/src/app/model/version.ts
index 21ec6ee38..5eb946e42 100644
--- a/modules/ui/src/app/model/version.ts
+++ b/modules/ui/src/app/model/version.ts
@@ -23,5 +23,4 @@ export interface Version {
export interface ConsentDialogResult {
grant: boolean;
- isNavigateToRiskAssessment?: boolean;
}