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
074f1be4
Commit
074f1be4
authored
1 year ago
by
Simon Urli
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-21031: Allow to define reviewed security vulnerabilities
* Fix integration test on chrome
parent
8aac36bd
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-extension/xwiki-platform-extension-security/xwiki-platform-extension-security-test/xwiki-platform-extension-security-test-docker/src/test/it/org/xwiki/extension/security/test/ui/ExtensionSecurityIT.java
+6
-2
6 additions, 2 deletions
...xwiki/extension/security/test/ui/ExtensionSecurityIT.java
with
6 additions
and
2 deletions
xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-security/xwiki-platform-extension-security-test/xwiki-platform-extension-security-test-docker/src/test/it/org/xwiki/extension/security/test/ui/ExtensionSecurityIT.java
+
6
−
2
View file @
074f1be4
...
...
@@ -104,14 +104,18 @@ private String createSecurityReviewsSource(TestUtils setup, TestReference testRe
private
String
createPageFromFile
(
TestUtils
setup
,
DocumentReference
testDocumentReference
,
String
name
)
throws
IOException
{
setup
.
createPage
(
testDocumentReference
,
""
);
WikiEditPage
wikiEditPage
=
new
V
iewPage
()
.
editWiki
();
ViewPage
viewPage
=
setup
.
createPage
(
testDocumentReference
,
""
);
WikiEditPage
wikiEditPage
=
v
iewPage
.
editWiki
();
// Can't create the content using setup.createPage as the content is too large.
wikiEditPage
.
setContent
(
"{{velocity wiki='false'}}\n"
+
IOUtils
.
toString
(
getClass
().
getClassLoader
().
getResourceAsStream
(
name
),
Charset
.
defaultCharset
())
+
"{{/velocity}}"
);
wikiEditPage
.
clickSaveAndView
(
false
);
// We don't use gotoPage here as it relies on some markers to ensure the page is properly loaded, which is not
// properly working when navigating from a JSON answer.
// Here we just want to navigate away from the JSON.
setup
.
getDriver
().
get
(
setup
.
getURL
(
"Main"
,
"WebHome"
));
return
getLocalRestURL
(
setup
,
testDocumentReference
);
}
...
...
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