From: addshore Date: Fri, 8 Jun 2018 12:11:38 +0000 (+0100) Subject: selenium, page spec, make "should be editable" actually edit X-Git-Tag: 1.34.0-rc.0~5092 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/config/%7Bplugin_url%20file=%24js%7D?a=commitdiff_plain;h=8602e489e153fc29682c650ab0fbe1e452c1bfbb;p=lhc%2Fweb%2Fwiklou.git selenium, page spec, make "should be editable" actually edit This was using the same content for the edit before this patch, so no edit was actually made, (just a null edit). Change-Id: I945090647226e82f22b5b10a414a2a0bf9f2bc19 --- diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index bc5f1009d7..5dbe84b5c4 100644 --- a/tests/selenium/specs/page.js +++ b/tests/selenium/specs/page.js @@ -63,11 +63,12 @@ describe( 'Page', function () { } ); // edit - EditPage.edit( name, content ); + let editContent = getTestString( 'editContent' ); + EditPage.edit( name, editContent ); // check assert.strictEqual( EditPage.heading.getText(), name ); - assert.strictEqual( EditPage.displayedContent.getText(), content ); + assert.strictEqual( EditPage.displayedContent.getText(), editContent ); } ); it( 'should have history', function () {