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
dd96ca11
Commit
dd96ca11
authored
10 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6280 move lasttest to the end
parent
f3e9c065
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
alfa-client/apps/alfa-e2e/src/e2e/main-tests/wiedervorlage/wiedervorlage.erledigen.cy.ts
+54
-51
54 additions, 51 deletions
...2e/main-tests/wiedervorlage/wiedervorlage.erledigen.cy.ts
with
54 additions
and
51 deletions
alfa-client/apps/alfa-e2e/src/e2e/main-tests/wiedervorlage/wiedervorlage.erledigen.cy.ts
+
54
−
51
View file @
dd96ca11
...
...
@@ -208,36 +208,62 @@ describe('Wiedervorlage erledigen/wiedereroeffnen', () => {
});
});
describe
(
'
tiny pentest for erledigen/wiedereroeffne
n
'
,
()
=>
{
describe
(
'
View Wiedervorlage view ico
n
'
,
()
=>
{
const
wiedervorlage
:
WiedervorlageInVorgangE2EComponent
=
wiedervorlageContainerInVorgang
.
getWiedervorlage
(
wiedervorlageZumWiedereroeffnen
.
betreff
);
const
locatorIconIsOverdue
:
string
=
'
wiedervorlage-icon-is-overdue
'
;
const
locatorIconDefault
:
string
=
'
wiedervorlage-icon-default
'
;
it
(
'
should open wiedervorlage on click
'
,
()
=>
{
wait
(
500
);
wiedervorlage
.
getLink
().
click
();
it
(
'
back to vorgang list
'
,
()
=>
{
vorgangPage
.
getSubnavigation
().
getBackButton
().
click
();
waitForSpinnerToDisappear
();
});
exist
(
subnavigation
.
getRoot
());
it
(
'
should show red icon
'
,
()
=>
{
exist
(
wiedervorlagenView
.
getRoot
().
findTestElementWithClass
(
locatorIconIsOverdue
));
});
it
(
'
Open Vorgang-Detail-Page
'
,
()
=>
{
mainPage
.
getVorgangList
().
getListItem
(
vorgang
.
name
).
getRoot
().
click
();
waitForSpinnerToDisappear
();
});
it
(
'
should mark as erledigt
'
,
()
=>
{
const
link
=
wiedervorlage
.
getLink
();
link
.
click
();
waitForSpinnerToDisappear
();
subnavigation
.
erledigen
();
waitForSpinnerToDisappear
();
subnavigation
.
navigateBack
();
waitForSpinnerToDisappear
();
});
waitforSpinnerToAppear
();
it
(
'
back to vorgang list
'
,
()
=>
{
vorgangPage
.
getSubnavigation
().
getBackButton
().
click
();
waitForSpinnerToDisappear
();
});
containClass
(
wiedervorlageContainer
.
getStatusDot
(),
'
erledigt
'
);
contains
(
snackBar
.
getMessage
(),
`Die Wiedervorlage
${
wiedervorlageZumWiedereroeffnen
.
betreff
}
wurde erledigt`
,
);
it
(
'
should show default icon
'
,
()
=>
{
exist
(
wiedervorlagenView
.
getRoot
().
findTestElementWithClass
(
locatorIconDefault
));
});
});
it
(
'
should close snackBar on close
'
,
()
=>
{
snackBar
.
getCloseButton
().
click
();
describe
(
'
tiny lasttest for erledigen/wiedereroeffnen
'
,
()
=>
{
const
wiedervorlage
:
WiedervorlageInVorgangE2EComponent
=
wiedervorlageContainerInVorgang
.
getWiedervorlage
(
wiedervorlageZumWiedereroeffnen
.
betreff
);
notExist
(
snackBar
.
getMessage
());
it
(
'
Open Vorgang-Detail-Page
'
,
()
=>
{
mainPage
.
getVorgangList
().
getListItem
(
vorgang
.
name
).
getRoot
().
click
();
waitForSpinnerToDisappear
();
});
it
(
'
should open wiedervorlage on click
'
,
()
=>
{
wait
(
500
);
wiedervorlage
.
getLink
().
click
();
waitForSpinnerToDisappear
();
exist
(
subnavigation
.
getRoot
());
});
it
(
'
should mark as open
'
,
()
=>
{
...
...
@@ -297,55 +323,32 @@ describe('Wiedervorlage erledigen/wiedereroeffnen', () => {
notExist
(
snackBar
.
getMessage
());
});
it
(
'
should
open vorgang detail on click on back
'
,
()
=>
{
subnavigation
.
navigateBack
();
it
(
'
should
mark as erledigt
'
,
()
=>
{
subnavigation
.
erledigen
();
waitforSpinnerToAppear
();
waitForSpinnerToDisappear
();
exist
(
vorgangDetailHeader
.
getRoot
());
});
});
//Test an die richtige Stelle verschieben und den Test vereinfachen
describe
(
'
View Wiedervorlage view icon
'
,
()
=>
{
const
wiedervorlage
:
WiedervorlageInVorgangE2EComponent
=
wiedervorlageContainerInVorgang
.
getWiedervorlage
(
wiedervorlageZumWiedereroeffnen
.
betreff
);
const
locatorIconIsOverdue
:
string
=
'
wiedervorlage-icon-is-overdue
'
;
const
locatorIconDefault
:
string
=
'
wiedervorlage-icon-default
'
;
it
(
'
back to vorgang list
'
,
()
=>
{
vorgangPage
.
getSubnavigation
().
getBackButton
().
click
();
waitForSpinnerToDisappear
();
containClass
(
wiedervorlageContainer
.
getStatusDot
(),
'
erledigt
'
);
contains
(
snackBar
.
getMessage
(),
`Die Wiedervorlage
${
wiedervorlageZumWiedereroeffnen
.
betreff
}
wurde erledigt`
,
);
});
it
(
'
should show red icon
'
,
()
=>
{
exist
(
wiedervorlagenView
.
getRoot
().
findTestElementWithClass
(
locatorIconIsOverdue
));
});
it
(
'
should close snackBar on close
'
,
()
=>
{
snackBar
.
getCloseButton
().
click
();
it
(
'
Open Vorgang-Detail-Page
'
,
()
=>
{
mainPage
.
getVorgangList
().
getListItem
(
vorgang
.
name
).
getRoot
().
click
();
waitForSpinnerToDisappear
();
notExist
(
snackBar
.
getMessage
());
});
it
(
'
should mark as erledigt
'
,
()
=>
{
wait
(
500
,
'
Flaky - page content changed while waiting
'
);
const
link
=
wiedervorlage
.
getLink
();
link
.
click
();
waitForSpinnerToDisappear
();
subnavigation
.
erledigen
();
waitForSpinnerToDisappear
();
it
(
'
should open vorgang detail on click on back
'
,
()
=>
{
subnavigation
.
navigateBack
();
waitForSpinnerToDisappear
();
});
it
(
'
back to vorgang list
'
,
()
=>
{
vorgangPage
.
getSubnavigation
().
getBackButton
().
click
();
waitforSpinnerToAppear
();
waitForSpinnerToDisappear
();
});
it
(
'
should show default icon
'
,
()
=>
{
exist
(
wiedervorlagenView
.
getRoot
().
findTestElementWithClass
(
locatorIconDefault
));
exist
(
vorgangDetailHeader
.
getRoot
());
});
});
});
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