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 sleep(1000)
|
||||||
await loginAsFoobar(t)
|
await loginAsFoobar(t)
|
||||||
await 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:')
|
.expect($('.compose-box-display-name img').getAttribute('alt')).eql(':blobpats:')
|
||||||
.click(displayNameInComposeBox)
|
.click(displayNameInComposeBox)
|
||||||
.expect(getUrl()).contains('/accounts/2')
|
.expect(getUrl()).contains('/accounts/2')
|
||||||
|
@ -37,7 +37,7 @@ test('Can remove emoji from user display names', async t => {
|
||||||
await sleep(1000)
|
await sleep(1000)
|
||||||
await loginAsFoobar(t)
|
await loginAsFoobar(t)
|
||||||
await t
|
await t
|
||||||
.expect(displayNameInComposeBox.innerText).eql('🌈 foo 🌈')
|
.expect(displayNameInComposeBox.innerText).match(/🌈\s+foo\s+🌈/)
|
||||||
.expect($('.compose-box-display-name img').exists).ok()
|
.expect($('.compose-box-display-name img').exists).ok()
|
||||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 foo :blobpats: 🌈')
|
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 foo :blobpats: 🌈')
|
||||||
.click(settingsNavButton)
|
.click(settingsNavButton)
|
||||||
|
@ -53,7 +53,7 @@ test('Can remove emoji from user display names', async t => {
|
||||||
.click(removeEmojiFromDisplayNamesInput)
|
.click(removeEmojiFromDisplayNamesInput)
|
||||||
.expect(removeEmojiFromDisplayNamesInput.checked).notOk()
|
.expect(removeEmojiFromDisplayNamesInput.checked).notOk()
|
||||||
.click(homeNavButton)
|
.click(homeNavButton)
|
||||||
.expect(displayNameInComposeBox.innerText).eql('🌈 foo 🌈')
|
.expect(displayNameInComposeBox.innerText).match(/🌈\s+foo\s+🌈/)
|
||||||
.expect($('.compose-box-display-name img').exists).ok()
|
.expect($('.compose-box-display-name img').exists).ok()
|
||||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 foo :blobpats: 🌈')
|
.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 sleep(1000)
|
||||||
await loginAsFoobar(t)
|
await loginAsFoobar(t)
|
||||||
await t
|
await t
|
||||||
.expect(displayNameInComposeBox.innerText).eql('🌈 🌈')
|
.expect(displayNameInComposeBox.innerText).match(/🌈\s+🌈/)
|
||||||
.expect($('.compose-box-display-name img').exists).ok()
|
.expect($('.compose-box-display-name img').exists).ok()
|
||||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
||||||
.click(settingsNavButton)
|
.click(settingsNavButton)
|
||||||
|
@ -71,7 +71,7 @@ test('Cannot remove emoji from user display names if result would be empty', asy
|
||||||
.click(removeEmojiFromDisplayNamesInput)
|
.click(removeEmojiFromDisplayNamesInput)
|
||||||
.expect(removeEmojiFromDisplayNamesInput.checked).ok()
|
.expect(removeEmojiFromDisplayNamesInput.checked).ok()
|
||||||
.click(homeNavButton)
|
.click(homeNavButton)
|
||||||
.expect(displayNameInComposeBox.innerText).eql('🌈 🌈')
|
.expect(displayNameInComposeBox.innerText).match(/🌈\s+🌈/)
|
||||||
.expect($('.compose-box-display-name img').exists).ok()
|
.expect($('.compose-box-display-name img').exists).ok()
|
||||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
||||||
.click(settingsNavButton)
|
.click(settingsNavButton)
|
||||||
|
@ -79,7 +79,7 @@ test('Cannot remove emoji from user display names if result would be empty', asy
|
||||||
.click(removeEmojiFromDisplayNamesInput)
|
.click(removeEmojiFromDisplayNamesInput)
|
||||||
.expect(removeEmojiFromDisplayNamesInput.checked).notOk()
|
.expect(removeEmojiFromDisplayNamesInput.checked).notOk()
|
||||||
.click(homeNavButton)
|
.click(homeNavButton)
|
||||||
.expect(displayNameInComposeBox.innerText).eql('🌈 🌈')
|
.expect(displayNameInComposeBox.innerText).match(/🌈\s+🌈/)
|
||||||
.expect($('.compose-box-display-name img').exists).ok()
|
.expect($('.compose-box-display-name img').exists).ok()
|
||||||
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
.expect(avatarInComposeBox.getAttribute('aria-label')).eql('Profile for 🌈 :blobpats: 🌈')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue