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