mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 04:53:12 +08:00
26 lines
521 B
JavaScript
26 lines
521 B
JavaScript
const uuid = require('uuid');
|
|
|
|
module.exports = {
|
|
'@tags': ['signup', 'visitor'],
|
|
before: client => {
|
|
const embedStreamPage = client.page.embedStreamPage();
|
|
|
|
embedStreamPage
|
|
.navigate()
|
|
.ready();
|
|
},
|
|
'Visitor signs up': client => {
|
|
const embedStreamPage = client.page.embedStreamPage();
|
|
|
|
embedStreamPage
|
|
.signUp({
|
|
email: `visitor_${uuid.v4()}@test.com`,
|
|
displayName: 'Visitor',
|
|
pass: 'testtest'
|
|
});
|
|
},
|
|
after: client => {
|
|
client.end();
|
|
}
|
|
};
|