From ece1ca8e51083661a91d2cd28559a4180c55fc04 Mon Sep 17 00:00:00 2001 From: toddlees Date: Tue, 26 Jul 2022 12:24:33 -0400 Subject: [PATCH 1/2] test button for qa --- .../src/app/reports/report-list/report-list.component.html | 7 +++++++ .../src/app/reports/report-list/report-list.component.ts | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/front-end/src/app/reports/report-list/report-list.component.html b/front-end/src/app/reports/report-list/report-list.component.html index cb8cbe1108..630f1eebcb 100644 --- a/front-end/src/app/reports/report-list/report-list.component.html +++ b/front-end/src/app/reports/report-list/report-list.component.html @@ -76,6 +76,13 @@
Recent reports
(click)="editItem(item)" [ariaLabel]="'edit ' + displayName(item)" > + diff --git a/front-end/src/app/reports/report-list/report-list.component.ts b/front-end/src/app/reports/report-list/report-list.component.ts index 00fcef2404..d55467934f 100644 --- a/front-end/src/app/reports/report-list/report-list.component.ts +++ b/front-end/src/app/reports/report-list/report-list.component.ts @@ -55,6 +55,10 @@ export class ReportListComponent extends TableListBaseComponent implemen } } + public goToTest(item: Report): void { + this.router.navigateByUrl(`/reports/f3x/test-dot-fec/${item.id}`); + } + public createTransaction(item: Report): void { this.router.navigateByUrl(`/transactions/report/${item.id}/create`); } From b2617331d1afd45eef3f52e4c29571896e680f44 Mon Sep 17 00:00:00 2001 From: Matt Travers Date: Tue, 26 Jul 2022 12:59:59 -0400 Subject: [PATCH 2/2] Disabled lint error in test file --- .../f3x/test-dot-fec-workflow/test-dot-fec.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front-end/src/app/reports/f3x/test-dot-fec-workflow/test-dot-fec.component.ts b/front-end/src/app/reports/f3x/test-dot-fec-workflow/test-dot-fec.component.ts index 504944f767..83a53bb9e0 100644 --- a/front-end/src/app/reports/f3x/test-dot-fec-workflow/test-dot-fec.component.ts +++ b/front-end/src/app/reports/f3x/test-dot-fec-workflow/test-dot-fec.component.ts @@ -25,12 +25,13 @@ export class TestDotFecComponent implements OnInit { } download(): void { + // prettier-ignore this.http .get(`${environment.apiUrl}/web-services/dot-fec/${this.report?.id}/`, { headers: this.apiService.getHeaders(), responseType: 'text', }) - .subscribe((dotFEC: any) => { + .subscribe((dotFEC: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any const newBlob = new Blob([dotFEC], { type: 'application/text' }); const data = window.URL.createObjectURL(newBlob); const link = document.createElement('a');