Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
0926c7e7
Commit
0926c7e7
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: small selenium fix
parent
85e32636
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/org/olat/selenium/UserTest.java
+4
-4
4 additions, 4 deletions
src/test/java/org/olat/selenium/UserTest.java
src/test/java/org/olat/selenium/page/portfolio/EntryPage.java
+2
-1
2 additions, 1 deletion
...test/java/org/olat/selenium/page/portfolio/EntryPage.java
with
6 additions
and
5 deletions
src/test/java/org/olat/selenium/UserTest.java
+
4
−
4
View file @
0926c7e7
...
@@ -216,13 +216,13 @@ public class UserTest {
...
@@ -216,13 +216,13 @@ public class UserTest {
//login again
//login again
loginPage
loginPage
.
assertOnLoginPage
()
.
assertOnLoginPage
()
.
loginAs
(
user
.
getLogin
(),
user
.
getPassword
());
.
loginAs
(
user
.
getLogin
(),
user
.
getPassword
())
//check that we are really logged in
.
assertLoggedIn
(
user
);
//check that we don't see the resume button
//
and
check that we don't see the resume button
List
<
WebElement
>
resumeButtons
=
browser
.
findElements
(
LoginPage
.
resumeButton
);
List
<
WebElement
>
resumeButtons
=
browser
.
findElements
(
LoginPage
.
resumeButton
);
Assert
.
assertTrue
(
resumeButtons
.
isEmpty
());
Assert
.
assertTrue
(
resumeButtons
.
isEmpty
());
//double check that we are really logged in
loginPage
.
assertLoggedIn
(
user
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/olat/selenium/page/portfolio/EntryPage.java
+
2
−
1
View file @
0926c7e7
...
@@ -88,7 +88,8 @@ public class EntryPage {
...
@@ -88,7 +88,8 @@ public class EntryPage {
By
inputBy
=
By
.
cssSelector
(
"fieldset.o_sel_pf_collect_image_form .o_fileinput input[type='file']"
);
By
inputBy
=
By
.
cssSelector
(
"fieldset.o_sel_pf_collect_image_form .o_fileinput input[type='file']"
);
OOGraphene
.
uploadFile
(
inputBy
,
image
,
browser
);
OOGraphene
.
uploadFile
(
inputBy
,
image
,
browser
);
OOGraphene
.
waitingALittleLonger
();
//wait event
By
previewBy
=
By
.
cssSelector
(
"div.o_filepreview>div.o_image>img"
);
OOGraphene
.
waitElement
(
previewBy
,
5
,
browser
);
By
titleBy
=
By
.
cssSelector
(
"fieldset.o_sel_pf_collect_image_form .o_sel_pf_collect_title input[type='text']"
);
By
titleBy
=
By
.
cssSelector
(
"fieldset.o_sel_pf_collect_image_form .o_sel_pf_collect_title input[type='text']"
);
browser
.
findElement
(
titleBy
).
sendKeys
(
title
);
browser
.
findElement
(
titleBy
).
sendKeys
(
title
);
...
...
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