Fix failing test
This commit is contained in:
parent
d3776bc9d6
commit
15b06e1158
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
composeButton,
|
||||
composeInput,
|
||||
getNthStatus, getNthStatusSelector
|
||||
getNthStatus, getNthStatusSelector, getNthShowOrHideButton
|
||||
} from '../utils'
|
||||
import { loginAsFoobar } from '../roles'
|
||||
import { Selector as $ } from 'testcafe'
|
||||
|
@ -21,6 +21,7 @@ test('External links, hashtags, and mentions have correct attributes', async t =
|
|||
await t
|
||||
.typeText(composeInput, text, { paste: true })
|
||||
.click(composeButton)
|
||||
.click(getNthShowOrHideButton(0))
|
||||
.expect(getNthStatus(0).innerText).contains('Why hello there', { timeout: 20000 })
|
||||
.expect(nthAnchor(0).getAttribute('href')).eql('/accounts/1')
|
||||
.expect(nthAnchor(0).hasAttribute('rel')).notOk()
|
||||
|
|
Loading…
Reference in New Issue