Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426033
NewTalkNotification.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
797 B
Referenced Files
None
Subscribers
None
NewTalkNotification.js
View Options
'use strict'
;
const
{
action
,
assert
}
=
require
(
'api-testing'
);
describe
(
'Testing a new talk page notification'
,
()
=>
{
let
kam
=
action
.
getAnon
();
let
alice
;
before
(
async
()
=>
{
[
alice
,
kam
]
=
await
Promise
.
all
(
[
action
.
alice
(),
kam
.
account
(
'Kam_'
)
]
);
}
);
it
(
'should edit a user\'s talk page'
,
async
()
=>
{
await
alice
.
edit
(
`User_talk:
${
kam
.
username
}
`
,
{
text
:
'Hi, Kam! ~~~~'
,
summary
:
'saying hello'
,
createonly
:
true
}
);
}
);
it
(
'user should have a new message notification'
,
async
()
=>
{
// FIXME: https://phabricator.wikimedia.org/T230211
const
result
=
await
kam
.
meta
(
'userinfo'
,
{
uiprop
:
'hasmsg'
}
);
assert
.
exists
(
result
.
messages
);
assert
.
equal
(
result
.
name
,
kam
.
username
);
assert
.
equal
(
result
.
id
,
kam
.
userid
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 12:27 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5b/68/92ce20e4156145a4d21e8f1e19a6
Default Alt Text
NewTalkNotification.js (797 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment