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
59bd5b96
Verified
Commit
59bd5b96
authored
4 months ago
by
Sebastian Bergandy
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6989 always init users in e2e
parent
012c059b
No related branches found
No related tags found
1 merge request
!5
OZG 6989 bugfixes
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
alfa-client/apps/alfa-e2e/src/e2e/main-tests/init-users.cy.ts
+7
-11
7 additions, 11 deletions
...-client/apps/alfa-e2e/src/e2e/main-tests/init-users.cy.ts
alfa-client/apps/alfa-e2e/src/support/user-util.ts
+0
-5
0 additions, 5 deletions
alfa-client/apps/alfa-e2e/src/support/user-util.ts
with
7 additions
and
16 deletions
alfa-client/apps/alfa-e2e/src/e2e/main-tests/init-users.cy.ts
+
7
−
11
View file @
59bd5b96
...
@@ -28,7 +28,7 @@ import { HeaderE2EComponent } from '../../page-objects/header.po';
...
@@ -28,7 +28,7 @@ import { HeaderE2EComponent } from '../../page-objects/header.po';
import
{
MainPage
,
waitForSpinnerToDisappear
}
from
'
../../page-objects/main.po
'
;
import
{
MainPage
,
waitForSpinnerToDisappear
}
from
'
../../page-objects/main.po
'
;
import
{
login
,
writeUserIdsIntoFile
}
from
'
../../support/cypress-helper
'
;
import
{
login
,
writeUserIdsIntoFile
}
from
'
../../support/cypress-helper
'
;
import
{
exist
}
from
'
../../support/cypress.util
'
;
import
{
exist
}
from
'
../../support/cypress.util
'
;
import
{
areUsersSynced
,
DatabaseUser
}
from
'
../../support/user-util
'
;
import
{
DatabaseUser
}
from
'
../../support/user-util
'
;
registerLocaleData
(
localeDe
,
'
de
'
,
localeDeExtra
);
registerLocaleData
(
localeDe
,
'
de
'
,
localeDeExtra
);
...
@@ -61,18 +61,14 @@ describe('Init users', () => {
...
@@ -61,18 +61,14 @@ describe('Init users', () => {
});
});
it
(
'
should write user ids to file
'
,
()
=>
{
it
(
'
should write user ids to file
'
,
()
=>
{
if
(
!
areUsersSynced
())
{
writeUserIdsIntoFile
();
writeUserIdsIntoFile
();
}
});
});
function
syncUser
(
user
:
DatabaseUser
)
{
function
syncUser
(
user
:
DatabaseUser
)
{
if
(
!
areUsersSynced
())
{
login
(
user
);
login
(
user
);
waitForSpinnerToDisappear
();
waitForSpinnerToDisappear
();
exist
(
header
.
getLogo
());
exist
(
header
.
getLogo
());
header
.
getCurrentUserProfile
().
getUserIconButton
().
click
();
header
.
getCurrentUserProfile
().
getUserIconButton
().
click
();
header
.
getCurrentUserProfile
().
getLogoutButton
().
click
();
header
.
getCurrentUserProfile
().
getLogoutButton
().
click
();
}
}
}
});
});
This diff is collapsed.
Click to expand it.
alfa-client/apps/alfa-e2e/src/support/user-util.ts
+
0
−
5
View file @
59bd5b96
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
* Die sprachspezifischen Genehmigungen und Beschränkungen
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
*/
import
{
isNotEmpty
}
from
'
@alfa-client/tech-shared
'
;
import
{
isEmpty
}
from
'
lodash-es
'
;
import
{
isEmpty
}
from
'
lodash-es
'
;
import
{
UserE2E
}
from
'
../model/user
'
;
import
{
UserE2E
}
from
'
../model/user
'
;
import
{
UsermanagerUserE2E
}
from
'
../model/usermanager
'
;
import
{
UsermanagerUserE2E
}
from
'
../model/usermanager
'
;
...
@@ -52,10 +51,6 @@ export function getUserId(username: Username) {
...
@@ -52,10 +51,6 @@ export function getUserId(username: Username) {
return
userIds
[
username
];
return
userIds
[
username
];
}
}
export
function
areUsersSynced
():
boolean
{
return
isNotEmpty
(
userIds
);
}
export
function
initUsermanagerUsers
()
{
export
function
initUsermanagerUsers
()
{
// initUsermanagerData([
// initUsermanagerData([
// getUserManagerUserSabine(),
// getUserManagerUserSabine(),
...
...
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