dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Localize namespaces to inh"
[lhc/web/wiklou.git]
/
tests
/
selenium
/
specs
/
page.js
diff --git
a/tests/selenium/specs/page.js
b/tests/selenium/specs/page.js
index
06d3d60
..
e59da78
100644
(file)
--- a/
tests/selenium/specs/page.js
+++ b/
tests/selenium/specs/page.js
@@
-9,6
+9,10
@@
describe( 'Page', function () {
var content,
name;
var content,
name;
+ function getTestString() {
+ return Math.random().toString() + '-öäü-♠♣♥♦';
+ }
+
before( function () {
// disable VisualEditor welcome dialog
UserLoginPage.open();
before( function () {
// disable VisualEditor welcome dialog
UserLoginPage.open();
@@
-17,8
+21,8
@@
describe( 'Page', function () {
beforeEach( function () {
browser.deleteCookie();
beforeEach( function () {
browser.deleteCookie();
- content =
Math.random().to
String();
- name =
Math.random().to
String();
+ content =
getTest
String();
+ name =
getTest
String();
} );
it( 'should be creatable', function () {
} );
it( 'should be creatable', function () {
@@
-34,19
+38,17
@@
describe( 'Page', function () {
it( 'should be editable', function () {
it( 'should be editable', function () {
- var content2 = Math.random().toString();
-
// create
browser.call( function () {
return EditPage.apiEdit( name, content );
} );
// edit
// create
browser.call( function () {
return EditPage.apiEdit( name, content );
} );
// edit
- EditPage.edit( name, content
2
);
+ EditPage.edit( name, content );
// check
assert.equal( EditPage.heading.getText(), name );
// check
assert.equal( EditPage.heading.getText(), name );
- assert.equal( EditPage.displayedContent.getText(), content
2
);
+ assert.equal( EditPage.displayedContent.getText(), content );
} );
} );