selenium, page spec, make "should be editable" actually edit
authoraddshore <addshorewiki@gmail.com>
Fri, 8 Jun 2018 12:11:38 +0000 (13:11 +0100)
committerWMDE-Fisch <christoph.jauera@wikimedia.de>
Wed, 13 Jun 2018 11:56:29 +0000 (11:56 +0000)
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

index bc5f100..5dbe84b 100644 (file)
@@ -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 () {