mediawiki-extensions-CodeMi.../tests/selenium/fixturecontent.js
James D. Forrester 9e9a38d6fc Refactor CodeMirror WebdriverIO tests from sync to async mode
Bug: T300205
Change-Id: Idfcfc984833ca6ca6c09500cd4715a4e5504f84e
2023-06-06 10:49:22 +02:00

20 lines
367 B
JavaScript

'use strict';
const Api = require( 'wdio-mediawiki/Api' );
const fixture1 = '[]{{template}}';
class FixtureContent {
/**
* Create a new fixture for testing syntax highlighting.
*
* @param {string} title
*/
async createFixturePage( title ) {
const bot = await Api.bot();
await bot.edit( title, fixture1 );
}
}
module.exports = new FixtureContent();