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