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
fdb1c156
Commit
fdb1c156
authored
2 months ago
by
Albert Bruns
Browse files
Options
Downloads
Patches
Plain Diff
OZG-7898 forwarding missing
parent
c64cff14
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!98
OZG-725-e2e
,
!97
OZG-725-7898-forwarding-e2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
alfa-client/apps/alfa-e2e/src/e2e/main-tests/vorgang-detailansicht/vorgang-forwarding.cy.ts
+70
-4
70 additions, 4 deletions
...main-tests/vorgang-detailansicht/vorgang-forwarding.cy.ts
with
70 additions
and
4 deletions
alfa-client/apps/alfa-e2e/src/e2e/main-tests/vorgang-detailansicht/vorgang-forwarding.cy.ts
+
70
−
4
View file @
fdb1c156
...
...
@@ -7,17 +7,22 @@ import { VorgangE2E } from '../../../model/vorgang';
import
{
MainPage
,
waitForSpinnerToDisappear
}
from
'
../../../page-objects/main.po
'
;
import
{
VorgangPage
}
from
'
../../../page-objects/vorgang.po
'
;
import
{
dropCollections
}
from
'
../../../support/cypress-helper
'
;
import
{
exist
,
notExist
}
from
'
../../../support/cypress.util
'
;
import
{
beDisabled
,
contains
,
exist
,
notBeDisabled
,
notExist
}
from
'
../../../support/cypress.util
'
;
import
{
loginAsPeter
,
loginAsSabine
}
from
'
../../../support/user-util
'
;
import
{
createVorgang
,
initVorgaenge
}
from
'
../../../support/vorgang-util
'
;
import
{
ForwardingDialogE2EComponent
}
from
'
apps/alfa-e2e/src/components/vorgang/vorgang-forwarding-dialog.e2e.component
'
;
registerLocaleData
(
localeDe
,
'
de
'
,
localeDeExtra
);
describe
(
'
Vorgang weiterleiten
innerhalb der OzgCloud
'
,
()
=>
{
describe
(
'
Vorgang weiterleiten
'
,
()
=>
{
const
mainPage
:
MainPage
=
new
MainPage
();
const
vorgangList
:
VorgangListE2EComponent
=
mainPage
.
getVorgangList
();
const
organisationsEinheitName
=
'
Landeshauptstadt Kiel - Pries-Friedrichsort Stadtteilamt
'
;
const
organisationsEinheitAddress
=
'
An der Schanze 45, 24159 Kiel
'
;
const
vorgangPage
:
VorgangPage
=
new
VorgangPage
();
const
forwardingDialog
:
ForwardingDialogE2EComponent
=
vorgangPage
.
getForwardingDialogContainer
();
const
vorgangFormularButtons
:
VorgangFormularButtonsE2EComponent
=
vorgangPage
.
getFormularButtons
();
const
vorgangWeiterleiten
:
VorgangE2E
=
{
...
createVorgang
(),
name
:
'
Weiterleitung
'
};
...
...
@@ -43,14 +48,75 @@ describe('Vorgang weiterleiten innerhalb der OzgCloud', () => {
exist
(
vorgangFormularButtons
.
getForwardButton
());
});
it
(
'
should not display Weiterleiten button in Status Angenommen
'
,
()
=>
{
it
(
'
should open forwarding dialog on forward button click
'
,
()
=>
{
vorgangFormularButtons
.
getForwardButton
().
click
();
exist
(
forwardingDialog
.
getRoot
());
});
it
(
'
should have zufi search
'
,
()
=>
{
exist
(
forwardingDialog
.
getZufiSearch
());
});
it
(
'
should have disabled forwarding button
'
,
()
=>
{
beDisabled
(
forwardingDialog
.
getForwardingButton
());
});
it
(
'
should close dialog on escape
'
,
()
=>
{
forwardingDialog
.
getRoot
().
type
(
'
{esc}
'
);
notExist
(
forwardingDialog
.
getRoot
());
});
it
(
'
should close dialog on abbrechen button
'
,
()
=>
{
vorgangFormularButtons
.
getForwardButton
().
click
();
forwardingDialog
.
getCancelButton
().
click
();
notExist
(
forwardingDialog
.
getRoot
());
});
it
(
'
should close dialog on x icon
'
,
()
=>
{
vorgangFormularButtons
.
getForwardButton
().
click
();
forwardingDialog
.
getCancelIconButton
().
click
();
notExist
(
forwardingDialog
.
getRoot
());
});
it
(
'
should show forwarding item on search select
'
,
()
=>
{
vorgangFormularButtons
.
getForwardButton
().
click
();
forwardingDialog
.
search
(
organisationsEinheitName
);
forwardingDialog
.
clickSearchEntry
(
0
);
exist
(
forwardingDialog
.
getForwardingItem
());
contains
(
forwardingDialog
.
getForwardingItem
(),
organisationsEinheitName
);
contains
(
forwardingDialog
.
getForwardingItem
(),
organisationsEinheitAddress
);
});
it
(
'
should not show zufi search on search select
'
,
()
=>
{
notExist
(
forwardingDialog
.
getZufiSearch
());
});
it
(
'
should not disable forwarding button on search select
'
,
()
=>
{
notBeDisabled
(
forwardingDialog
.
getForwardingButton
());
});
it
(
'
should clear forwarding item on change button click
'
,
()
=>
{
forwardingDialog
.
getChangeButton
().
click
();
notExist
(
forwardingDialog
.
getForwardingItem
());
exist
(
forwardingDialog
.
getZufiSearch
());
beDisabled
(
forwardingDialog
.
getForwardingButton
());
});
it
(
'
should not display Weiterleiten button in status Angenommen
'
,
()
=>
{
forwardingDialog
.
getCancelButton
().
click
();
vorgangFormularButtons
.
getAnnehmenButton
().
click
();
waitForSpinnerToDisappear
();
notExist
(
vorgangFormularButtons
.
getForwardButton
());
});
it
(
'
should not display Weiterleiten button in
S
tatus In Bearbeitung
'
,
()
=>
{
it
(
'
should not display Weiterleiten button in
s
tatus In Bearbeitung
'
,
()
=>
{
vorgangFormularButtons
.
getBearbeitenButton
().
click
();
waitForSpinnerToDisappear
();
...
...
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