fix mute test (#174)

This commit is contained in:
Nolan Lawson 2018-04-19 09:34:49 -07:00 committed by GitHub
parent 7f5bea8f5b
commit 979b4afc89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
import {
accountProfileFollowButton,
accountProfileMoreOptionsButton, communityNavButton, getNthSearchResult,
getNthStatus, getNthStatusOptionsButton, getNthDialogOptionsOption, getUrl, modalDialog
getNthStatus, getNthStatusOptionsButton, getNthDialogOptionsOption, getUrl, modalDialog, closeDialogButton
} from '../utils'
import { Selector as $ } from 'testcafe'
import { foobarRole } from '../roles'
@ -38,6 +38,6 @@ test('Can mute and unmute an account', async t => {
.expect(getNthDialogOptionsOption(2).innerText).contains('Unfollow @admin')
.expect(getNthDialogOptionsOption(3).innerText).contains('Block @admin')
.expect(getNthDialogOptionsOption(4).innerText).contains('Mute @admin')
.click(getNthDialogOptionsOption(2))
.click(closeDialogButton)
.expect(accountProfileFollowButton.getAttribute('aria-label')).eql('Unfollow')
})