Skip to content
Snippets Groups Projects
Commit f8784a6a authored by OZGCloud's avatar OZGCloud
Browse files

add test for error message on missing Bescheid doc

parent 59c762ec
Branches
Tags
No related merge requests found
...@@ -42,6 +42,7 @@ describe('Bescheid Wizard', () => { ...@@ -42,6 +42,7 @@ describe('Bescheid Wizard', () => {
const documentError: string = 'Erlaubte Dateiendungen'; const documentError: string = 'Erlaubte Dateiendungen';
const sizeError: string = 'Anhänge größer'; const sizeError: string = 'Anhänge größer';
const missingBescheidError: string = 'Bitte fügen Sie';
before(() => { before(() => {
initVorgaenge([bescheidVorgang]); initVorgaenge([bescheidVorgang]);
...@@ -136,4 +137,12 @@ describe('Bescheid Wizard', () => { ...@@ -136,4 +137,12 @@ describe('Bescheid Wizard', () => {
contains(bescheidWizard.getAttachmentDocument(), sizeError); contains(bescheidWizard.getAttachmentDocument(), sizeError);
}); });
}); });
describe('do not continue without attached Bescheid', () => {
it('should show error if no Bescheid is attached and step 3 is clicked', () => {
uploadFile(bescheidWizard.getUploadAttachmentButton(), TEST_FILE_BESCHEID_ANHANG_VALID);
bescheidWizard.getWeiterButton().click();
contains(bescheidWizard.getBescheidDocument(), missingBescheidError);
});
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment