mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 07:15:07 +01:00
Feature: copy workflows and mail rules, improve layout (#7727)
This commit is contained in:
parent
8aa35540b5
commit
6192c15c4d
9 changed files with 227 additions and 70 deletions
|
|
@ -226,6 +226,17 @@ describe('MailComponent', () => {
|
|||
component.editMailRule()
|
||||
})
|
||||
|
||||
it('should support copy mail rule', () => {
|
||||
completeSetup()
|
||||
let modal: NgbModalRef
|
||||
modalService.activeInstances.subscribe((refs) => (modal = refs[0]))
|
||||
component.copyMailRule(mailRules[0] as MailRule)
|
||||
const editDialog = modal.componentInstance as MailRuleEditDialogComponent
|
||||
expect(editDialog.object.id).toBeNull()
|
||||
expect(editDialog.object.name).toEqual(`${mailRules[0].name} (copy)`)
|
||||
expect(editDialog.dialogMode).toEqual(EditDialogMode.CREATE)
|
||||
})
|
||||
|
||||
it('should support delete mail rule, show error if needed', () => {
|
||||
completeSetup()
|
||||
let modal: NgbModalRef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue