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
1b0359a9
Commit
1b0359a9
authored
10 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: fix selenium test, the edit menu of portfolio template
parent
3f11f4e2
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/PortfolioTest.java
+1
-1
1 addition, 1 deletion
src/test/java/org/olat/selenium/PortfolioTest.java
src/test/java/org/olat/selenium/page/portfolio/PortfolioPage.java
+27
-0
27 additions, 0 deletions
.../java/org/olat/selenium/page/portfolio/PortfolioPage.java
with
28 additions
and
1 deletion
src/test/java/org/olat/selenium/PortfolioTest.java
+
1
−
1
View file @
1b0359a9
...
@@ -832,7 +832,7 @@ public class PortfolioTest {
...
@@ -832,7 +832,7 @@ public class PortfolioTest {
String
pageTitle
=
"Page-Template-"
+
UUID
.
randomUUID
();
String
pageTitle
=
"Page-Template-"
+
UUID
.
randomUUID
();
String
structureElementTitle
=
"Struct-Template-"
+
UUID
.
randomUUID
();
String
structureElementTitle
=
"Struct-Template-"
+
UUID
.
randomUUID
();
template
template
.
openEditor
()
.
open
Resource
Editor
()
.
selectMapInEditor
(
portfolioTitle
)
.
selectMapInEditor
(
portfolioTitle
)
.
selectFirstPageInEditor
()
.
selectFirstPageInEditor
()
.
setPage
(
pageTitle
,
"With a little description"
)
.
setPage
(
pageTitle
,
"With a little description"
)
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/olat/selenium/page/portfolio/PortfolioPage.java
+
27
−
0
View file @
1b0359a9
...
@@ -188,6 +188,33 @@ public class PortfolioPage {
...
@@ -188,6 +188,33 @@ public class PortfolioPage {
return
this
;
return
this
;
}
}
/**
* Open the editor of a template
* @return
*/
public
PortfolioPage
openResourceEditor
()
{
By
toolsMenu
=
By
.
cssSelector
(
"ul.o_sel_repository_tools"
);
if
(!
browser
.
findElement
(
toolsMenu
).
isDisplayed
())
{
openToolsMenu
();
}
By
editTemplateBy
=
By
.
className
(
"o_sel_ep_edit_map"
);
browser
.
findElement
(
editTemplateBy
).
click
();
OOGraphene
.
waitBusy
();
return
this
;
}
/**
* Open the tools drop-down
* @return
*/
public
PortfolioPage
openToolsMenu
()
{
By
toolsMenuCaretBy
=
By
.
cssSelector
(
"a.o_sel_repository_tools"
);
browser
.
findElement
(
toolsMenuCaretBy
).
click
();
By
toolsMenuBy
=
By
.
cssSelector
(
"ul.o_sel_repository_tools"
);
OOGraphene
.
waitElement
(
toolsMenuBy
);
return
this
;
}
public
PortfolioPage
openMap
(
String
mapTitle
)
{
public
PortfolioPage
openMap
(
String
mapTitle
)
{
By
mapBy
=
By
.
cssSelector
(
"div.o_eportfolio_maps div.o_map-default"
);
By
mapBy
=
By
.
cssSelector
(
"div.o_eportfolio_maps div.o_map-default"
);
By
headingBy
=
By
.
cssSelector
(
"div.panel-heading h4"
);
By
headingBy
=
By
.
cssSelector
(
"div.panel-heading h4"
);
...
...
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