mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve test and loader
This commit is contained in:
@@ -268,6 +268,9 @@ export class DespachoPrPage implements OnInit {
|
||||
},
|
||||
"AttachmentList" :documents,
|
||||
}
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService.successMessage('')
|
||||
@@ -275,6 +278,9 @@ export class DespachoPrPage implements OnInit {
|
||||
} catch (error) {
|
||||
this.toastService.badRequest()
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -289,6 +295,9 @@ export class DespachoPrPage implements OnInit {
|
||||
},
|
||||
"AttachmentList" :documents,
|
||||
}
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService.successMessage()
|
||||
@@ -296,6 +305,9 @@ export class DespachoPrPage implements OnInit {
|
||||
} catch (error) {
|
||||
this.toastService.badRequest()
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
import { promise } from 'protractor';
|
||||
import { environment } from './../src/environments/environment'
|
||||
|
||||
describe('Puppeteer tests', () => {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
|
||||
import { element } from 'protractor';
|
||||
import { environment } from './../src/environments/environment'
|
||||
|
||||
describe('Puppeteer tests', () => {
|
||||
|
||||
Reference in New Issue
Block a user