mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 20:46:58 +08:00
25 lines
541 B
JavaScript
25 lines
541 B
JavaScript
module.exports = {
|
|
'@tags': ['signup', 'visitor'],
|
|
before: client => {
|
|
const embedStreamPage = client.page.embedStreamPage();
|
|
|
|
embedStreamPage
|
|
.navigate()
|
|
.ready();
|
|
},
|
|
'Visitor signs up': client => {
|
|
const embedStreamPage = client.page.embedStreamPage();
|
|
const hash = Math.floor(Math.random() * (999 - 0));
|
|
|
|
embedStreamPage
|
|
.signUp({
|
|
email: `visitor_${hash}@test.com`,
|
|
displayName: 'Visitor',
|
|
pass: 'testtest'
|
|
});
|
|
},
|
|
after: client => {
|
|
client.end();
|
|
}
|
|
};
|