Skip to content
Snippets Groups Projects
Verified Commit cdf9b2af authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

Merge branch 'main' into OZG-5977-multi-file-upload-wiedervorlagen

parents 3fca064a 160bde9e
Branches
Tags
1 merge request!74OZG-5977 add multi file upload to wiedervorlagen
......@@ -47,7 +47,7 @@ import { buildVorgang, initVorgaenge, objectIds } from '../../../support/vorgang
registerLocaleData(localeDe, 'de', localeDeExtra);
describe('Bescheid History', () => {
const waitForFormPatchMillis: number = 10;
const waitForFormPatchMillis: number = 100;
const mainPage: MainPage = new MainPage();
const vorgangList: VorgangListE2EComponent = mainPage.getVorgangList();
......
......@@ -42,7 +42,7 @@ import { buildVorgang, initVorgaenge, objectIds } from '../../../support/vorgang
registerLocaleData(localeDe, 'de', localeDeExtra);
describe('Bescheid speichern', () => {
const waitForFormPatchMillis: number = 10;
const waitForFormPatchMillis: number = 100;
const mainPage: MainPage = new MainPage();
const vorgangList: VorgangListE2EComponent = mainPage.getVorgangList();
......
......@@ -26,11 +26,7 @@ import localeDe from '@angular/common/locales/de';
import localeDeExtra from '@angular/common/locales/extra/de';
import { VorgangBescheidWizardE2EComponent } from 'apps/alfa-e2e/src/components/vorgang/vorgang-bescheid-wizard.e2e.component';
import { VorgangFormularButtonsE2EComponent } from 'apps/alfa-e2e/src/components/vorgang/vorgang-formular-buttons.e2e.components';
import {
VorgangE2E,
VorgangStatusE2E,
vorgangStatusLabelE2E,
} from 'apps/alfa-e2e/src/model/vorgang';
import { VorgangE2E, VorgangStatusE2E, vorgangStatusLabelE2E } from 'apps/alfa-e2e/src/model/vorgang';
import { uploadFile } from 'apps/alfa-e2e/src/support/file-upload';
import 'cypress-real-events/support';
import { VorgangListE2EComponent } from '../../../components/vorgang/vorgang-list.e2e.component';
......@@ -63,8 +59,7 @@ describe('Bescheid Wizard', () => {
status: VorgangStatusE2E.IN_BEARBEITUNG,
};
const vorgangFormularButtons: VorgangFormularButtonsE2EComponent =
vorgangPage.getFormularButtons();
const vorgangFormularButtons: VorgangFormularButtonsE2EComponent = vorgangPage.getFormularButtons();
before(() => {
initVorgaenge([wizardVorgang]);
......@@ -105,6 +100,7 @@ describe('Bescheid Wizard', () => {
enterWith(bescheidWizard.getDateInput(), getAdjustedDateEnglish(-1));
bescheidWizard.getWeiterButton().click();
waitForSpinnerToDisappear();
exist(bescheidWizard.getDateError());
enterWith(bescheidWizard.getDateInput(), getAdjustedDateGerman(-1));
......@@ -116,6 +112,7 @@ describe('Bescheid Wizard', () => {
bescheidWizard.getRoot().should('not.contain', stepCaption3);
bescheidWizard.getWeiterButton().click();
waitForSpinnerToDisappear();
bescheidWizard.getRoot().contains(stepCaption1);
bescheidWizard.getRoot().contains(stepCaption2);
bescheidWizard.getRoot().should('not.contain', stepCaption3);
......@@ -123,6 +120,7 @@ describe('Bescheid Wizard', () => {
uploadFile(bescheidWizard.getUploadBescheidButton(), TEST_FILE_BESCHEID_VALID);
notExist(bescheidWizard.getBescheidUploadSpinner());
bescheidWizard.getWeiterButton().click();
waitForSpinnerToDisappear();
bescheidWizard.getRoot().contains(stepCaption1);
bescheidWizard.getRoot().contains(stepCaption2);
bescheidWizard.getRoot().contains(stepCaption3);
......@@ -143,6 +141,7 @@ describe('Bescheid Wizard', () => {
it('should close Wizard on Überspringen, discard data and set status to Abgeschlossen', () => {
bescheidWizard.getAbgelehntButton().click();
bescheidWizard.getWeiterButton().click();
waitForSpinnerToDisappear();
bescheidWizard.getStepButton1().click();
bescheidWizard.getUeberspringenButton().click();
exist(bescheidWizard.getUeberspringenDialog());
......@@ -152,13 +151,11 @@ describe('Bescheid Wizard', () => {
bescheidWizard.getUeberspringenButton().click();
bescheidWizard.getUeberspringenAbschliessen().click();
waitForSpinnerToDisappear();
notExist(bescheidWizard.getRoot());
wait(1000);
haveText(
vorgangPage.getVorgangDetailHeader().getStatus(),
vorgangStatusLabelE2E[VorgangStatusE2E.ABGESCHLOSSEN],
);
haveText(vorgangPage.getVorgangDetailHeader().getStatus(), vorgangStatusLabelE2E[VorgangStatusE2E.ABGESCHLOSSEN]);
vorgangFormularButtons.getWiedereroeffnenButton().click();
vorgangFormularButtons.getBescheidenButton().click();
......
......@@ -47,6 +47,7 @@
data-test-class="binary-file-container-in-bescheid"
[resource]="bescheid"
[linkRel]="bescheidLinkRel.ATTACHMENTS"
[listOrientation]="BinaryFileListOrientation.VERTICAL"
></alfa-binary-file-list-container>
</ods-bescheid-wrapper>
</div>
......@@ -23,6 +23,7 @@
*/
import { BescheidLinkRel, BescheidListLinkRel, BescheidListResource, BescheidStatus } from '@alfa-client/bescheid-shared';
import { Component, Input } from '@angular/core';
import { BinaryFileListOrientation } from '../../../../../binary-file/src/lib/directive/binary-file-list-orientation/binary-file-list-orientation.directive';
@Component({
selector: 'alfa-bescheid-list-in-vorgang',
......@@ -32,6 +33,8 @@ import { Component, Input } from '@angular/core';
export class BescheidListInVorgangComponent {
@Input() public bescheidList: BescheidListResource;
public readonly BinaryFileListOrientation = BinaryFileListOrientation;
public readonly bescheidListLinkRel = BescheidListLinkRel;
public readonly bescheidLinkRel = BescheidLinkRel;
public readonly bescheidStatus = BescheidStatus;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment