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
452aa49b
Commit
452aa49b
authored
10 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6300 add test structure
parent
4281bb2c
No related branches found
No related tags found
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/vorgang-zusammenarbeit/vorgang-zusammenarbeit-anfragen.cy.ts
+106
-0
106 additions, 0 deletions
...gang-zusammenarbeit/vorgang-zusammenarbeit-anfragen.cy.ts
with
106 additions
and
0 deletions
alfa-client/apps/alfa-e2e/src/e2e/main-tests/vorgang-zusammenarbeit/vorgang-zusammenarbeit-anfragen.cy.ts
0 → 100644
+
106
−
0
View file @
452aa49b
import
{
registerLocaleData
}
from
'
@angular/common
'
;
import
localeDe
from
'
@angular/common/locales/de
'
;
import
localeDeExtra
from
'
@angular/common/locales/extra/de
'
;
import
{
VorgangE2E
,
VorgangStatusE2E
}
from
'
apps/alfa-e2e/src/model/vorgang
'
;
import
'
cypress-real-events/support
'
;
import
{
VorgangListE2EComponent
}
from
'
../../../components/vorgang/vorgang-list.e2e.component
'
;
import
{
MainPage
,
waitForSpinnerToDisappear
}
from
'
../../../page-objects/main.po
'
;
import
{
VorgangPage
}
from
'
../../../page-objects/vorgang.po
'
;
import
{
dropCollections
}
from
'
../../../support/cypress-helper
'
;
import
{
exist
}
from
'
../../../support/cypress.util
'
;
import
{
initUsermanagerUsers
,
loginAsSabine
}
from
'
../../../support/user-util
'
;
import
{
buildVorgang
,
initVorgaenge
,
objectIds
}
from
'
../../../support/vorgang-util
'
;
registerLocaleData
(
localeDe
,
'
de
'
,
localeDeExtra
);
describe
(
'
Vorgang Zusammenarbeit anfragen
'
,
()
=>
{
const
mainPage
:
MainPage
=
new
MainPage
();
const
vorgangList
:
VorgangListE2EComponent
=
mainPage
.
getVorgangList
();
const
messageTitle
:
string
=
'
Titel der Anfrage
'
;
const
messageBody
:
string
=
'
Nachricht der Anfrage
'
;
//Zeilenumbruch einfügen
const
vorgangPage
:
VorgangPage
=
new
VorgangPage
();
const
zusammenarbeitVorgang
:
VorgangE2E
=
{
...
buildVorgang
(
objectIds
[
0
],
'
Zusammenarbeit Vorgang
'
),
status
:
VorgangStatusE2E
.
IN_BEARBEITUNG
,
};
before
(()
=>
{
initVorgaenge
([
zusammenarbeitVorgang
]);
initUsermanagerUsers
();
loginAsSabine
();
waitForSpinnerToDisappear
();
exist
(
vorgangList
.
getRoot
());
});
after
(()
=>
{
dropCollections
();
});
describe
(
'
xxx
'
,
()
=>
{
it
(
'
should show button for Zusammenarbeit
'
,
()
=>
{
vorgangList
.
getListItem
(
zusammenarbeitVorgang
.
name
).
getRoot
().
click
();
waitForSpinnerToDisappear
();
//Button Zusammenarbeit existiert
});
it
(
'
should be possible to open and close accordeon element
'
,
()
=>
{
//ein- / ausklappen
});
it
(
'
should show input elements on Anfrage click
'
,
()
=>
{
//Anfrage erstellen klicken
//UI Elemente prüfen
});
it
(
'
should close elements on Cancel click
'
,
()
=>
{
//Abbrechen
//UI Elemente werden ausgeblendet
});
it
(
'
should open new search label for Zustaendige Stelle
'
,
()
=>
{
//button click
//Layer wird angezeigt
});
it
(
'
should close layer on Cancel click
'
,
()
=>
{
//click Abbrechen
});
it
(
'
should show no search on entering 1 element
'
,
()
=>
{
//1 Zeichen in Suche eingeben
//keine Vorschau
});
it
(
'
should show results on entering 2 elements
'
,
()
=>
{
//2 Zeichen in Suche eingeben
//Vorschau kontrollieren
});
it
(
'
should delete search term on clicking X
'
,
()
=>
{
//X in Suche klicken
//Suche ist leer
//keine Vorschau
});
it
(
'
should copy and paste Zustaendige Stelle after selection
'
,
()
=>
{
//click Suchergebnis
//Adresse und Name wird übernommen
//Layer ist geschlossen
});
it
(
'
should show title and message read-only and remove buttons after sending
'
,
()
=>
{
//Titel eingeben
//Nachricht eingeben
//Button klicken
//Titel und Datum werden angezeigt
//Nachricht wird angezeigt
//Buttons werden ausgeblendet
});
});
});
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