From: addshore Date: Sat, 13 Jan 2018 12:19:28 +0000 (+0000) Subject: selenium, update page spec to include more chars X-Git-Tag: 1.31.0-rc.0~904 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/One?a=commitdiff_plain;h=877c2e0a58749f0b71213eb7aa56e19dde1acd4e;p=lhc%2Fweb%2Fwiklou.git selenium, update page spec to include more chars Bug: T184749 Change-Id: I3423011c467b0a6426cfa0dad522435618f24bd0 --- diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index 06d3d60a1b..e59da78a55 100644 --- a/tests/selenium/specs/page.js +++ b/tests/selenium/specs/page.js @@ -9,6 +9,10 @@ describe( 'Page', function () { var content, name; + function getTestString() { + return Math.random().toString() + '-öäü-♠♣♥♦'; + } + before( function () { // disable VisualEditor welcome dialog UserLoginPage.open(); @@ -17,8 +21,8 @@ describe( 'Page', function () { beforeEach( function () { browser.deleteCookie(); - content = Math.random().toString(); - name = Math.random().toString(); + content = getTestString(); + name = getTestString(); } ); it( 'should be creatable', function () { @@ -34,19 +38,17 @@ describe( 'Page', function () { it( 'should be editable', function () { - var content2 = Math.random().toString(); - // create browser.call( function () { return EditPage.apiEdit( name, content ); } ); // edit - EditPage.edit( name, content2 ); + EditPage.edit( name, content ); // check assert.equal( EditPage.heading.getText(), name ); - assert.equal( EditPage.displayedContent.getText(), content2 ); + assert.equal( EditPage.displayedContent.getText(), content ); } );