���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/selenium/specs/user.js
���ѧ٧ѧ�
'use strict'; const assert = require( 'assert' ); const CreateAccountPage = require( 'wdio-mediawiki/CreateAccountPage' ); const UserLoginPage = require( 'wdio-mediawiki/LoginPage' ); const Api = require( 'wdio-mediawiki/Api' ); const Util = require( 'wdio-mediawiki/Util' ); describe( 'User', function () { let password, username, bot; before( async () => { bot = await Api.bot(); } ); beforeEach( async function () { await browser.deleteAllCookies(); username = Util.getTestString( 'User-' ); password = Util.getTestString(); } ); it( 'should be able to create account', async function () { // create await CreateAccountPage.createAccount( username, password ); // check assert.strictEqual( await CreateAccountPage.heading.getText(), `Welcome, ${username}!` ); } ); it( 'should be able to log in @daily', async function () { // create await Api.createAccount( bot, username, password ); // log in await UserLoginPage.login( username, password ); // check const actualUsername = await browser.execute( async () => { return mw.config.get( 'wgUserName' ); } ); assert.strictEqual( await actualUsername, username ); } ); } );
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.2 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�