pinafore/tests/spec/019-mention.js
Nolan Lawson efdb0bc534
Remove testcafe roles and run in parallel x4 (#334)
* more attempts to fix test flakiness

* remove testcafe roles entirely

* really remove testcafe roles

* run testcafe in parallel x2

* run testcafe in parallel x4

* fix online/offline forcing in tests

* fix pin test
2018-05-26 13:51:41 -07:00

21 lines
646 B
JavaScript

import {
accountProfileMoreOptionsButton, closeDialogButton,
getNthDialogOptionsOption, modalDialog
} from '../utils'
import { loginAsFoobar } from '../roles'
fixture`019-mention.js`
.page`http://localhost:4002`
test('can mention from account profile', async t => {
await loginAsFoobar(t)
await t
.navigateTo('/accounts/5')
.click(accountProfileMoreOptionsButton)
.expect(getNthDialogOptionsOption(1).innerText).contains('Mention @baz')
.click(getNthDialogOptionsOption(1))
.expect(modalDialog.find('.compose-box-input').value).eql('@baz ')
.click(closeDialogButton)
.expect(modalDialog.exists).notOk()
})