Page MenuHomeWickedGov Phorge

expect.js
No OneTemporary

Size
670 B
Referenced Files
None
Subscribers
None

expect.js

// Example code for Selenium/Explanation/Stack
// https://www.mediawiki.org/wiki/Selenium/Explanation/Stack
'use strict';
// baseUrl is required for our continuous integration.
// If you don't have MW_SERVER and MW_SCRIPT_PATH environment variables set
// you can probably hardcode it to something like this:
// const baseUrl = 'http://localhost:8080/wiki/';
const baseUrl = `${ process.env.MW_SERVER }${ process.env.MW_SCRIPT_PATH }/index.php?title=`;
describe( 'Main page', () => {
it( 'should have "Log in" link when using expect', async () => {
await browser.url( `${ baseUrl }Main_Page` );
await expect( await $( 'li#pt-login-2 a' ) ).toExist();
} );
} );

File Metadata

Mime Type
text/plain
Expires
Oct 3 2026, 00:28 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1b/c4/891f334b8fedd64f870581f95f9e
Default Alt Text
expect.js (670 B)

Event Timeline