fix tests broken in chrome 70 (#602)
This commit is contained in:
parent
bc3a74bbcb
commit
e11738a711
|
@ -17,7 +17,7 @@ test('Can put custom emoji in display name', async t => {
|
|||
await sleep(1000)
|
||||
await loginAsFoobar(t)
|
||||
await t
|
||||
.expect(displayNameInComposeBox.innerText).eql('foobar ')
|
||||
.expect(displayNameInComposeBox.innerText).match(/\s*foobar\s*/)
|
||||
.expect($('.compose-box-display-name img').getAttribute('alt')).eql(':blobpats:')
|
||||
.click(displayNameInComposeBox)
|
||||
.expect(getUrl()).contains('/accounts/2')
|
||||
|
@ -37,7 +37,7 @@ test('Can remove emoji from user display names', async t => {
|
|||
await sleep(1000)
|
||||
await loginAsFoobar(t)
|
||||
await t
|
||||
.expect(displayNameInComposeBox.innerText).eql('🌈 foo 🌈')
|
||||
.expect(displayNameInComposeBox.innerText).match(/🌈\s+foo\s+🌈/)
|
||||
.expect($('.compose-box-display-name img').exists).ok()
|
||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 foo :blobpats: 🌈')
|
||||
.click(settingsNavButton)
|
||||
|
@ -53,7 +53,7 @@ test('Can remove emoji from user display names', async t => {
|
|||
.click(removeEmojiFromDisplayNamesInput)
|
||||
.expect(removeEmojiFromDisplayNamesInput.checked).notOk()
|
||||
.click(homeNavButton)
|
||||
.expect(displayNameInComposeBox.innerText).eql('🌈 foo 🌈')
|
||||
.expect(displayNameInComposeBox.innerText).match(/🌈\s+foo\s+🌈/)
|
||||
.expect($('.compose-box-display-name img').exists).ok()
|
||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 foo :blobpats: 🌈')
|
||||
})
|
||||
|
@ -63,7 +63,7 @@ test('Cannot remove emoji from user display names if result would be empty', asy
|
|||
await sleep(1000)
|
||||
await loginAsFoobar(t)
|
||||
await t
|
||||
.expect(displayNameInComposeBox.innerText).eql('🌈 🌈')
|
||||
.expect(displayNameInComposeBox.innerText).match(/🌈\s+🌈/)
|
||||
.expect($('.compose-box-display-name img').exists).ok()
|
||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
||||
.click(settingsNavButton)
|
||||
|
@ -71,7 +71,7 @@ test('Cannot remove emoji from user display names if result would be empty', asy
|
|||
.click(removeEmojiFromDisplayNamesInput)
|
||||
.expect(removeEmojiFromDisplayNamesInput.checked).ok()
|
||||
.click(homeNavButton)
|
||||
.expect(displayNameInComposeBox.innerText).eql('🌈 🌈')
|
||||
.expect(displayNameInComposeBox.innerText).match(/🌈\s+🌈/)
|
||||
.expect($('.compose-box-display-name img').exists).ok()
|
||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
||||
.click(settingsNavButton)
|
||||
|
@ -79,7 +79,7 @@ test('Cannot remove emoji from user display names if result would be empty', asy
|
|||
.click(removeEmojiFromDisplayNamesInput)
|
||||
.expect(removeEmojiFromDisplayNamesInput.checked).notOk()
|
||||
.click(homeNavButton)
|
||||
.expect(displayNameInComposeBox.innerText).eql('🌈 🌈')
|
||||
.expect(displayNameInComposeBox.innerText).match(/🌈\s+🌈/)
|
||||
.expect($('.compose-box-display-name img').exists).ok()
|
||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue