From 979b4afc89478bb4652a0f1c9bd5a2819fee4a9b Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 19 Apr 2018 09:34:49 -0700 Subject: [PATCH] fix mute test (#174) --- tests/spec/114-mute-unmute.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/114-mute-unmute.js b/tests/spec/114-mute-unmute.js index 5a23964d..f5afabd3 100644 --- a/tests/spec/114-mute-unmute.js +++ b/tests/spec/114-mute-unmute.js @@ -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') })