mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2025-01-19 08:25:50 +00:00
Merge "selenium: Improve debugging"
This commit is contained in:
commit
7da358581f
|
@ -8,7 +8,7 @@ describe( 'Content Editable', function () {
|
|||
|
||||
let name, content;
|
||||
|
||||
beforeEach( async function () {
|
||||
it( 'should load when an url is opened', async function () {
|
||||
content = Util.getTestString();
|
||||
name = Util.getTestString();
|
||||
await browser.deleteAllCookies();
|
||||
|
@ -16,13 +16,19 @@ describe( 'Content Editable', function () {
|
|||
|
||||
await EditPage.openForEditing( name );
|
||||
await EditPage.activationComplete();
|
||||
} );
|
||||
|
||||
it( 'should load when an url is opened', async function () {
|
||||
assert( await EditPage.toolbar.isDisplayed() );
|
||||
} );
|
||||
|
||||
it( 'should be editable', async function () {
|
||||
content = Util.getTestString();
|
||||
name = Util.getTestString();
|
||||
await browser.deleteAllCookies();
|
||||
await LoginPage.loginAdmin();
|
||||
|
||||
await EditPage.openForEditing( name );
|
||||
await EditPage.activationComplete();
|
||||
|
||||
await EditPage.veRootNode.setValue( content );
|
||||
|
||||
assert.equal( await EditPage.veRootNode.getText(), content );
|
||||
|
@ -34,6 +40,14 @@ describe( 'Content Editable', function () {
|
|||
} );
|
||||
|
||||
it( 'should save an edit', async function () {
|
||||
content = Util.getTestString();
|
||||
name = Util.getTestString();
|
||||
await browser.deleteAllCookies();
|
||||
await LoginPage.loginAdmin();
|
||||
|
||||
await EditPage.openForEditing( name );
|
||||
await EditPage.activationComplete();
|
||||
|
||||
await EditPage.veRootNode.setValue( content );
|
||||
await EditPage.savePageDots.click();
|
||||
await EditPage.savePage.click();
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
const { config } = require( 'wdio-mediawiki/wdio-defaults.conf.js' );
|
||||
|
||||
exports.config = { ...config
|
||||
exports.config = { ...config,
|
||||
// Override, or add to, the setting from wdio-mediawiki.
|
||||
// Learn more at https://webdriver.io/docs/configurationfile/
|
||||
//
|
||||
// Example:
|
||||
// logLevel: 'info',
|
||||
logLevel: 'info'
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue