Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426608
watchlist.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
watchlist.js
View Options
'use strict'
;
const
Api
=
require
(
'wdio-mediawiki/Api'
);
const
WatchlistPage
=
require
(
'../pageobjects/watchlist.page'
);
const
WatchablePage
=
require
(
'../pageobjects/watchable.page'
);
const
LoginPage
=
require
(
'wdio-mediawiki/LoginPage'
);
const
BlankPage
=
require
(
'wdio-mediawiki/BlankPage'
);
const
Util
=
require
(
'wdio-mediawiki/Util'
);
describe
(
'Special:Watchlist'
,
()
=>
{
let
bot
;
before
(
async
()
=>
{
// Default bot is the admin that we also use for viewing via LoginPage.loginAdmin()
bot
=
await
Api
.
bot
();
}
);
beforeEach
(
async
()
=>
{
await
LoginPage
.
loginAdmin
();
}
);
// Skipped on 2022-12-07 in 865696 because of T324237
it
.
skip
(
'should show page with new edit @daily'
,
async
function
()
{
const
title
=
Util
.
getTestString
(
'Title-'
);
// First try to load a blank page, so the next command works.
await
BlankPage
.
open
();
// Don't try to run wikitext-specific tests if the test namespace isn't wikitext by default.
if
(
await
Util
.
isTargetNotWikitext
(
title
)
)
{
this
.
skip
();
}
// create
await
bot
.
edit
(
title
,
Util
.
getTestString
()
);
await
WatchablePage
.
watch
(
title
);
// edit
await
bot
.
edit
(
title
,
Util
.
getTestString
()
);
await
WatchlistPage
.
open
();
// We are viewing Special:Watchlist with the same account that made the edit,
// but by default Special:Watchlist includes both seen and unseen changes, so
// it'll show up anyway. The title we just edited will be first because the edit
// was the most recent.
await
expect
(
await
WatchlistPage
.
titles
[
0
]
).
toHaveText
(
title
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 13:28 (1 d, 11 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9f/17/960b0cc40c87879542354af92c76
Default Alt Text
watchlist.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment