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
5816e648
Commit
5816e648
authored
2 years ago
by
Michael Hamann
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-19928: Migrate CKEditor to XWiki Platform
* Fix integration tests in Chrome.
parent
d3db51e5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-test/xwiki-platform-ckeditor-test-docker/src/test/it/org/xwiki/ckeditor/test/ui/SaveIT.java
+5
-2
5 additions, 2 deletions
...docker/src/test/it/org/xwiki/ckeditor/test/ui/SaveIT.java
with
5 additions
and
2 deletions
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-test/xwiki-platform-ckeditor-test-docker/src/test/it/org/xwiki/ckeditor/test/ui/SaveIT.java
+
5
−
2
View file @
5816e648
...
...
@@ -21,6 +21,7 @@
import
org.junit.jupiter.api.BeforeAll
;
import
org.junit.jupiter.api.Test
;
import
org.openqa.selenium.Keys
;
import
org.xwiki.ckeditor.test.po.CKEditor
;
import
org.xwiki.ckeditor.test.po.RichTextAreaElement
;
import
org.xwiki.panels.test.po.DocumentInformationPanel
;
...
...
@@ -71,7 +72,9 @@ void saveAfterSyntaxChange(TestUtils setup, TestReference testReference)
// Type some text to verify that it isn't lost when we change the syntax.
CKEditor
editor
=
new
CKEditor
(
"content"
).
waitToLoad
();
editor
.
getRichTextArea
().
sendKeys
(
"test "
);
// First move the cursor to the start before entering the text to ensure it is outside the link, being
// outside the link is the initial state in Chrome but not in Firefox.
editor
.
getRichTextArea
().
sendKeys
(
Keys
.
HOME
,
"test "
);
DocumentSyntaxPicker
documentSyntaxPicker
=
new
DocumentInformationPanel
().
getSyntaxPicker
();
assertEquals
(
"xwiki/2.0"
,
documentSyntaxPicker
.
getSelectedSyntax
());
...
...
@@ -81,7 +84,7 @@ void saveAfterSyntaxChange(TestUtils setup, TestReference testReference)
.
contains
(
"from the previous XWiki 2.0 syntax to the selected XWiki 2.1 syntax?"
));
confirmationModal
.
confirmSyntaxConversion
();
assertEquals
(
"
[[
test label>>||anchor=\"target\"]]"
,
editPage
.
clickSaveAndView
().
editWiki
().
getContent
());
assertEquals
(
"test
[[
label>>||anchor=\"target\"]]"
,
editPage
.
clickSaveAndView
().
editWiki
().
getContent
());
assertEquals
(
"xwiki/2.1"
,
new
DocumentInformationPanel
().
getSyntaxPicker
().
getSelectedSyntax
());
}
}
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