[ADF-242] Fixed behaviour for saving/deleting reports (#1905)

* [ADF-242] - fix for deleting - saving a report

* [ADF - 242] added test for fixed feature on reports save - delete

* Added translation key
This commit is contained in:
Vito
2017-05-26 09:07:59 -07:00
committed by Eugenio Romano
parent 7b17b10ef1
commit 6e3e3ab5b7
9 changed files with 67 additions and 25 deletions

View File

@@ -483,7 +483,7 @@ describe('AnalyticsReportParametersComponent', () => {
validForm = true;
});
xit('Should be able to change the report title', (done) => {
it('Should be able to change the report title', (done) => {
let title: HTMLElement = element.querySelector('h4');
title.click();
@@ -514,9 +514,10 @@ describe('AnalyticsReportParametersComponent', () => {
});
it('Should show a dialog to allowing report save', async(() => {
component.saveReportSuccess.subscribe(() => {
component.saveReportSuccess.subscribe((repId) => {
let reportDialogTitle: HTMLElement = <HTMLElement>element.querySelector('#report-dialog');
expect(reportDialogTitle.getAttribute('open')).toBeNull();
expect(repId).toBe('1');
});
component.submit(values);