Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend-clients
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
frontend-clients
Commits
37641001
Commit
37641001
authored
5 months ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6810 tiny e2e refactoring
parent
54e42ad4
No related branches found
No related tags found
1 merge request
!14
Ozg 6810 fm dateiinhalt ersetzen
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
alfa-client/apps/alfa-e2e/src/e2e/main-tests/vorgang-anhang/vorgang-anhang-herunterladen.cy.ts
+15
-20
15 additions, 20 deletions
...n-tests/vorgang-anhang/vorgang-anhang-herunterladen.cy.ts
with
15 additions
and
20 deletions
alfa-client/apps/alfa-e2e/src/e2e/main-tests/vorgang-anhang/vorgang-anhang-herunterladen.cy.ts
+
15
−
20
View file @
37641001
...
@@ -61,15 +61,17 @@ describe('Vorgang Anhänge', () => {
...
@@ -61,15 +61,17 @@ describe('Vorgang Anhänge', () => {
const
vorgangHeader
:
VorgangDetailHeaderE2EComponent
=
vorgangPage
.
getVorgangDetailHeader
();
const
vorgangHeader
:
VorgangDetailHeaderE2EComponent
=
vorgangPage
.
getVorgangDetailHeader
();
const
subnavigation
:
VorgangSubnavigationE2EComponent
=
vorgangPage
.
getSubnavigation
();
const
subnavigation
:
VorgangSubnavigationE2EComponent
=
vorgangPage
.
getSubnavigation
();
const
attachmentContainer
:
AttachmentContainerE2EComponent
=
vorgangPage
.
getAttachmentContainer
();
const
attachmentContainer
:
AttachmentContainerE2EComponent
=
vorgangPage
.
getAttachmentContainer
();
const
attachmentList
:
AttachmentListE2EComponent
=
new
AttachmentListE2EComponent
();
const
attachmentList
:
AttachmentListE2EComponent
=
new
AttachmentListE2EComponent
();
const
formularDatenContainer
:
VorgangFormularDatenE2EComponent
=
vorgangPage
.
getFormularDatenContainer
();
const
formularDatenContainer
:
VorgangFormularDatenE2EComponent
=
vorgangPage
.
getFormularDatenContainer
();
const
vorgangDatenFormular
:
VorgangFormularDatenE2EComponent
=
vorgangPage
.
getFormularDatenContainer
();
const
xmlRepresentation
:
FileDataE2E
=
createXmlRepresentation
();
const
xmlRepresentation
:
FileDataE2E
=
createXmlRepresentation
();
const
jpgAttachment
:
FileDataE2E
=
createJpgAttachment
();
const
pdfAttachment
:
FileDataE2E
=
createPdfAttachment
();
const
sonstigeAttachment
=
{
const
sonstigeAttachment
=
{
name
:
'
datei_sonstiges
'
,
name
:
'
datei_sonstiges
'
,
files
:
[
createJ
pgAttachment
(),
createP
dfAttachment
()
],
files
:
[
j
pgAttachment
,
p
dfAttachment
],
};
};
const
vorgangKeinAnhang
:
VorgangE2E
=
createVorgang
();
const
vorgangKeinAnhang
:
VorgangE2E
=
createVorgang
();
...
@@ -97,6 +99,7 @@ describe('Vorgang Anhänge', () => {
...
@@ -97,6 +99,7 @@ describe('Vorgang Anhänge', () => {
after
(()
=>
{
after
(()
=>
{
dropCollections
();
dropCollections
();
deleteDownloadFolder
();
});
});
describe
(
'
Download Attachment
'
,
()
=>
{
describe
(
'
Download Attachment
'
,
()
=>
{
...
@@ -115,32 +118,32 @@ describe('Vorgang Anhänge', () => {
...
@@ -115,32 +118,32 @@ describe('Vorgang Anhänge', () => {
});
});
it
(
'
should download jpg
'
,
()
=>
{
it
(
'
should download jpg
'
,
()
=>
{
const
jpgAttachmentName
:
string
=
getJpgAttachment
().
name
;
attachmentContainer
.
getList
().
getItem
(
jpgAttachment
.
name
).
getRoot
().
click
();
attachmentContainer
.
getList
().
getItem
(
jpgAttachmentName
).
getRoot
().
click
();
waitForSpinnerToDisappear
();
waitForSpinnerToDisappear
();
exist
(
readFileFromDownloads
(
buildDownloadFileName
(
jpgAttachment
N
ame
)));
exist
(
readFileFromDownloads
(
buildDownloadFileName
(
jpgAttachment
.
n
ame
)));
});
});
it
(
'
should download pdf
'
,
()
=>
{
it
(
'
should download pdf
'
,
()
=>
{
const
pdfAttachmentName
:
string
=
getPdfAttachment
().
name
;
attachmentContainer
.
getList
().
getItem
(
convertToDataTestId
(
pdfAttachment
.
name
)).
getRoot
().
click
();
attachmentContainer
.
getList
().
getItem
(
convertToDataTestId
(
pdfAttachmentName
)).
getRoot
().
click
();
waitForSpinnerToDisappear
();
waitForSpinnerToDisappear
();
exist
(
readFileFromDownloads
(
buildDownloadFileName
(
pdfAttachment
N
ame
)));
exist
(
readFileFromDownloads
(
buildDownloadFileName
(
pdfAttachment
.
n
ame
)));
});
});
it
(
'
should download attachment zip file
'
,
()
=>
{
it
(
'
should download attachment zip file
'
,
()
=>
{
deleteDownloadFolder
().
then
(()
=>
{
attachmentList
.
downloadAttachments
();
attachmentList
.
downloadAttachments
();
});
waitForSpinnerToDisappear
();
exist
(
readFileFromDownloads
(
`
${
vorgangAnhangVorhanden
.
nummer
}
_Anhaenge.zip`
));
});
});
it
(
'
should unzip attachment file
'
,
()
=>
{
it
(
'
should unzip attachment file
'
,
()
=>
{
getDownloadFiles
().
then
((
files
)
=>
{
getDownloadFiles
().
then
((
files
)
=>
{
unzipDownloadFile
(
files
[
0
]).
then
(()
=>
{
unzipDownloadFile
(
files
[
0
]).
then
(()
=>
{
countDownloadFiles
().
then
((
count
)
=>
{
countDownloadFiles
().
then
((
count
)
=>
{
expect
(
count
).
to
.
eq
(
3
);
expect
(
count
).
to
.
eq
(
5
);
});
});
});
});
});
});
...
@@ -152,14 +155,6 @@ describe('Vorgang Anhänge', () => {
...
@@ -152,14 +155,6 @@ describe('Vorgang Anhänge', () => {
exist
(
vorgangList
.
getRoot
());
exist
(
vorgangList
.
getRoot
());
});
});
function
getJpgAttachment
():
FileDataE2E
{
return
sonstigeAttachment
.
files
[
1
];
}
function
getPdfAttachment
():
FileDataE2E
{
return
sonstigeAttachment
.
files
[
0
];
}
});
});
describe
(
'
Download Representation
'
,
()
=>
{
describe
(
'
Download Representation
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment