mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-12 10:16:16 +01:00
chore(tests): make focus test less flaky (#708)
This commit is contained in:
parent
153e4f4fcd
commit
a760687c6d
@ -77,6 +77,7 @@ test('thread preserves focus', async t => {
|
|||||||
await loginAsFoobar(t)
|
await loginAsFoobar(t)
|
||||||
await t
|
await t
|
||||||
.navigateTo('/accounts/3')
|
.navigateTo('/accounts/3')
|
||||||
|
.hover(getNthStatus(0))
|
||||||
await scrollToStatus(t, 2)
|
await scrollToStatus(t, 2)
|
||||||
await t.click(getNthStatus(2))
|
await t.click(getNthStatus(2))
|
||||||
.expect(getUrl()).contains('/statuses/')
|
.expect(getUrl()).contains('/statuses/')
|
||||||
@ -87,6 +88,7 @@ test('thread preserves focus', async t => {
|
|||||||
.expect(getNthStatus(24).exists).ok()
|
.expect(getNthStatus(24).exists).ok()
|
||||||
.expect(getActiveElementClass()).contains('status-sidebar')
|
.expect(getActiveElementClass()).contains('status-sidebar')
|
||||||
.expect(getActiveElementInsideNthStatus()).eql('24')
|
.expect(getActiveElementInsideNthStatus()).eql('24')
|
||||||
|
.hover(getNthStatus(23))
|
||||||
.click(getNthStatus(23))
|
.click(getNthStatus(23))
|
||||||
.expect($(`${getNthStatusSelector(23)} .status-absolute-date`).exists).ok()
|
.expect($(`${getNthStatusSelector(23)} .status-absolute-date`).exists).ok()
|
||||||
await goBack()
|
await goBack()
|
||||||
|
Loading…
Reference in New Issue
Block a user