mediawiki-extensions-CodeMi.../tests/selenium/fixturecontent.js
WMDE-Fisch 49b83a1a48 [selenium] Update REL1_39 to current master tests
Mostly to fix Libraryupgrader jobs.

Change-Id: I587d3b27ef4cf7acfa0a7e9cfdd1f33c405bc0bc
2024-05-11 10:12:19 +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();