Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
profwebfrontend
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s87777
profwebfrontend
Commits
3234dabf
Commit
3234dabf
authored
1 year ago
by
Flo-Game
Browse files
Options
Downloads
Patches
Plain Diff
user cant see usermanagement ts
parent
ee2787f1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/LoginTest.test.ts
+27
-0
27 additions, 0 deletions
src/test/LoginTest.test.ts
with
27 additions
and
0 deletions
src/test/LoginTest.test.ts
+
27
−
0
View file @
3234dabf
...
@@ -63,4 +63,31 @@ describe("Login Test", function () {
...
@@ -63,4 +63,31 @@ describe("Login Test", function () {
const
isErrorMessageVisible
=
await
driver
.
findElement
(
By
.
id
(
"
errorMessage
"
)).
isDisplayed
();
const
isErrorMessageVisible
=
await
driver
.
findElement
(
By
.
id
(
"
errorMessage
"
)).
isDisplayed
();
assert
.
strictEqual
(
isErrorMessageVisible
,
true
,
"
Falsche Anmeldeinformationen werden nicht erkannt.
"
);
assert
.
strictEqual
(
isErrorMessageVisible
,
true
,
"
Falsche Anmeldeinformationen werden nicht erkannt.
"
);
},
10000
);
},
10000
);
it
(
"
user cant see user management
"
,
async
function
()
{
const
loginButton
=
await
driver
.
findElement
(
By
.
id
(
"
loginButton
"
));
await
loginButton
.
click
();
await
driver
.
wait
(
until
.
elementLocated
(
By
.
id
(
"
loginDialog
"
)),
5000
);
// Überprüfe, ob der Dialog geöffnet wurde
const
isDialogOpen
=
await
driver
.
findElement
(
By
.
id
(
"
loginDialog
"
)).
isDisplayed
();
assert
.
strictEqual
(
isDialogOpen
,
true
,
"
Der Dialog wurde nicht geöffnet.
"
);
const
inputMail
=
await
driver
.
findElement
(
By
.
id
(
"
inputEmail
"
));
const
inputPassword
=
await
driver
.
findElement
(
By
.
id
(
"
inputPassword
"
));
await
inputMail
.
sendKeys
(
"
john@some-host.de
"
);
await
inputPassword
.
sendKeys
(
"
12abcAB!
"
);
const
okButton
=
await
driver
.
findElement
(
By
.
id
(
"
okButton
"
));
await
okButton
.
click
();
await
driver
.
wait
(
until
.
elementLocated
(
By
.
id
(
"
logoutButton
"
)),
5000
);
const
isLogoutButtonOpen
=
await
driver
.
findElement
(
By
.
id
(
"
logoutButton
"
)).
isDisplayed
();
assert
.
strictEqual
(
isLogoutButtonOpen
,
true
,
"
Der Logout Button wird nicht angezeigt.
"
);
//dont show user management
const
UserManagmentLink
=
await
driver
.
findElement
(
By
.
linkText
(
"
UserManagment
"
));
assert
.
strictEqual
(
UserManagmentLink
.
length
,
undefined
,
"
Der Link zu UserManagment sollte nicht sichtbar sein.
"
);
},
10000
)
});
});
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