Fix failing test

This commit is contained in:
Will Pearson 2019-01-12 18:11:36 -08:00
parent d3776bc9d6
commit 15b06e1158
1 changed files with 2 additions and 1 deletions

View File

@ -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()