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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
frontend-clients
Commits
cac83437
Commit
cac83437
authored
1 month ago
by
Cord Westhoff
Browse files
Options
Downloads
Patches
Plain Diff
OZG-8086 OZG-8172 add E2E test file
parent
69077182
No related branches found
No related tags found
2 merge requests
!144
OZG-8086 Refactor tab handling; use existing components; inverse dependencies
,
!142
Ozg 8086 statistik datenanfrage erstellen
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
alfa-client/apps/admin-e2e/src/e2e/main-tests/datenanfragen/auswertung-erstellen.cy.ts
+74
-0
74 additions, 0 deletions
...c/e2e/main-tests/datenanfragen/auswertung-erstellen.cy.ts
with
74 additions
and
0 deletions
alfa-client/apps/admin-e2e/src/e2e/main-tests/datenanfragen/auswertung-erstellen.cy.ts
0 → 100644
+
74
−
0
View file @
cac83437
import
{
Auswertung
,
FieldMapping
}
from
'
@admin-client/reporting-shared
'
;
import
{
AuswertungFormE2EComponent
}
from
'
../../../components/auswertung/auswertung-form.e2e.component
'
;
import
{
AuswertungE2EComponent
}
from
'
../../../components/auswertung/auswertung.e2e.component
'
;
import
{
E2EAuswertungHelper
}
from
'
../../../helper/auswertung/auswertung.helper
'
;
import
{
E2EAuswertungVerifier
}
from
'
../../../helper/auswertung/auswertung.verifier
'
;
import
{
dropCollections
}
from
'
../../../support/cypress-helper
'
;
import
{
exist
,
notExist
}
from
'
../../../support/cypress.util
'
;
import
{
loginAsDaria
}
from
'
../../../support/user-util
'
;
describe
(
'
Datenanfrage erstellen
'
,
()
=>
{
const
page
:
AuswertungE2EComponent
=
new
AuswertungE2EComponent
();
const
form
:
AuswertungFormE2EComponent
=
new
AuswertungFormE2EComponent
();
const
helper
:
E2EAuswertungHelper
=
new
E2EAuswertungHelper
();
const
verifier
:
E2EAuswertungVerifier
=
new
E2EAuswertungVerifier
();
const
fieldMapping0
:
FieldMapping
=
{
sourcePath
:
'
/path/to/source/a
'
,
targetPath
:
'
/path/to/target/a
'
,
};
const
fieldMapping1
:
FieldMapping
=
{
sourcePath
:
'
/path/to/source/b
'
,
targetPath
:
'
/path/to/target/b
'
,
};
const
auswertung
:
Auswertung
=
{
name
:
'
Auswertung
'
,
formIdentifier
:
{
formEngineName
:
'
formEngineName
'
,
formId
:
'
formId
'
,
},
mappings
:
[
fieldMapping0
,
fieldMapping1
],
};
before
(()
=>
{
loginAsDaria
();
});
after
(()
=>
{
dropCollections
();
});
it
(
'
should show "Auswertung erstellen" button
'
,
()
=>
{});
it
(
'
should show first tab after button click
'
,
()
=>
{});
it
(
'
should fill input fields
'
,
()
=>
{});
it
(
'
should add data field in form
'
,
()
=>
{
page
.
getWeitereFelderAuswertenButton
().
click
();
form
.
getAddFieldButton
().
click
();
exist
(
form
.
getDataFieldInput
(
1
));
});
it
(
'
should fill out form with two data fields
'
,
()
=>
{
helper
.
fillFormular
(
auswertung
);
verifier
.
verifyForm
(
auswertung
);
});
it
(
'
should delete data fields
'
,
()
=>
{
form
.
getDataFieldDeleteButton
(
0
).
click
();
notExist
(
form
.
getDataFieldInput
(
1
));
});
it
(
'
should open second tab after save
'
,
()
=>
{});
it
(
'
should show all entered data in second tab
'
,
()
=>
{});
it
(
'
should open first tab after back
'
,
()
=>
{});
});
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