Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
XWiki
xwiki-platform
Commits
6ca7e8d6
Commit
6ca7e8d6
authored
10 months ago
by
Simon Urli
Browse files
Options
Downloads
Patches
Plain Diff
[Misc] Fix javadoc typos in NotificationWatchmodal
parent
d215cde0
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
xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-pageobjects/src/main/java/org/xwiki/platform/notifications/test/po/NotificationsWatchModal.java
+6
-4
6 additions, 4 deletions
...atform/notifications/test/po/NotificationsWatchModal.java
with
6 additions
and
4 deletions
xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-pageobjects/src/main/java/org/xwiki/platform/notifications/test/po/NotificationsWatchModal.java
+
6
−
4
View file @
6ca7e8d6
...
...
@@ -73,7 +73,7 @@ public enum WatchOptions
UNWATCH_PAGE
(
"unwatchPage"
),
/**
* For removing the watch filter on a page and instead watch the entire space
* For removing the watch filter on a page and instead watch the entire space
.
*/
UNWATCH_PAGE_WATCH_SPACE
(
"unwatchPageWatchSpace"
),
/**
...
...
@@ -90,7 +90,7 @@ public enum WatchOptions
UNBLOCK_PAGE
(
"unblockPage"
),
/**
* For removing the block filter on a page and instead block the entire space
* For removing the block filter on a page and instead block the entire space
.
*/
UNBLOCK_PAGE_BLOCK_SPACE
(
"unblockPageBlockSpace"
),
/**
...
...
@@ -120,11 +120,13 @@ String getOptionValue()
*/
public
List
<
WatchOptions
>
getAvailableOptions
()
{
String
attributeValue
=
"value"
;
return
this
.
container
.
findElements
(
By
.
name
(
"watch-option"
)).
stream
().
map
(
element
->
Arrays
.
stream
(
WatchOptions
.
values
())
.
filter
(
option
->
element
.
getAttribute
(
"v
alue
"
).
equals
(
option
.
getOptionValue
()))
.
filter
(
option
->
element
.
getAttribute
(
attributeV
alue
).
equals
(
option
.
getOptionValue
()))
.
findFirst
()
.
orElseThrow
(()
->
new
IllegalArgumentException
(
"Option "
+
element
.
getAttribute
(
"value"
)
+
" not found"
))
.
orElseThrow
(()
->
new
IllegalArgumentException
(
"Option "
+
element
.
getAttribute
(
attributeValue
)
+
" not found"
))
).
toList
();
}
...
...
This diff is collapsed.
Click to expand it.
Simon Urli
@surli
mentioned in commit
4d52533e
·
10 months ago
mentioned in commit
4d52533e
mentioned in commit 4d52533e3fd8cde4f9cec5ac7b75ebf20c10f4fc
Toggle commit list
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