Debian Codegraph @

tests/selenium/fixturecontent.js

raw
1 'use strict';
2
3 const Api = require( 'wdio-mediawiki/Api' );
4
5 const fixture1 = '[]{{template}}';
6
7 class FixtureContent {
8 /**
9 * Create a new fixture for testing syntax highlighting.
10 *
11 * @param {string} title
12 */
13 async createFixturePage( title ) {
14 const bot = await Api.bot();
15 await bot.edit( title, fixture1 );
16 }
17 }
18
19 module.exports = new FixtureContent();