Page MenuHomeWickedGov Phorge

basic.js
No OneTemporary

Size
602 B
Referenced Files
None
Subscribers
None

basic.js

'use strict';
const assert = require( 'assert' ),
Api = require( 'wdio-mediawiki/Api' ),
MathPage = require( '../pageobjects/math.page' );
describe( 'Math', () => {
let bot;
before( async () => {
bot = await Api.bot();
} );
it( 'should work for addition', async () => {
// page should have random name
const pageName = Math.random().toString();
// create a page with a simple addition
await bot.edit( pageName, '<math>3 + 2</math>' );
await MathPage.openTitle( pageName );
// check if the page displays the image
assert( await MathPage.mathml.isExisting() );
} );
} );

File Metadata

Mime Type
text/plain
Expires
Oct 5 2026, 11:03 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
27/45/b1e31387ffbc7556ec358c4294ae
Default Alt Text
basic.js (602 B)

Event Timeline