From 8602e489e153fc29682c650ab0fbe1e452c1bfbb Mon Sep 17 00:00:00 2001 From: addshore Date: Fri, 8 Jun 2018 13:11:38 +0100 Subject: [PATCH] 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 --- tests/selenium/specs/page.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 () { -- 2.20.1