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
b5e6715a
Commit
b5e6715a
authored
9 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: use same formatter in selenium test for setting the lifecycle date as in openolat code
parent
ba0e5ed6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/org/olat/selenium/page/repository/RepositoryEditDescriptionPage.java
+3
-4
3 additions, 4 deletions
...lenium/page/repository/RepositoryEditDescriptionPage.java
with
3 additions
and
4 deletions
src/test/java/org/olat/selenium/page/repository/RepositoryEditDescriptionPage.java
+
3
−
4
View file @
b5e6715a
...
...
@@ -19,7 +19,6 @@
*/
package
org.olat.selenium.page.repository
;
import
java.text.DateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Locale
;
...
...
@@ -27,6 +26,7 @@ import java.util.Locale;
import
org.jboss.arquillian.drone.api.annotation.Drone
;
import
org.jboss.arquillian.graphene.Graphene
;
import
org.junit.Assert
;
import
org.olat.core.util.Formatter
;
import
org.olat.selenium.page.NavigationPage
;
import
org.olat.selenium.page.graphene.OOGraphene
;
import
org.openqa.selenium.By
;
...
...
@@ -67,12 +67,11 @@ public class RepositoryEditDescriptionPage {
OOGraphene
.
waitBusy
(
browser
);
By
validFromBy
=
By
.
cssSelector
(
".o_sel_repo_lifecycle_validfrom .o_date_picker input[type='text']"
);
DateFormat
shortDateFormat
=
DateFormat
.
getDateInstance
(
DateFormat
.
SHORT
,
locale
);
String
validFromStr
=
shortDateFormat
.
format
(
validFrom
);
String
validFromStr
=
Formatter
.
getInstance
(
locale
).
formatDate
(
validFrom
);
browser
.
findElement
(
validFromBy
).
sendKeys
(
validFromStr
);
By
validToBy
=
By
.
cssSelector
(
".o_sel_repo_lifecycle_validto .o_date_picker input[type='text']"
);
String
validToStr
=
shortDateFormat
.
format
(
validTo
);
String
validToStr
=
Formatter
.
getInstance
(
locale
)
.
format
Date
(
validTo
);
browser
.
findElement
(
validToBy
).
sendKeys
(
validToStr
);
return
this
;
...
...
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