fix tests
This commit is contained in:
parent
80a89a64f1
commit
e34a1054a2
|
@ -49,7 +49,7 @@ test('Logs in and logs out of localhost:3000', async t => {
|
||||||
.expect($('.acct-handle').innerText).eql('@foobar')
|
.expect($('.acct-handle').innerText).eql('@foobar')
|
||||||
.expect($('.acct-display-name').innerText).eql('foobar')
|
.expect($('.acct-display-name').innerText).eql('foobar')
|
||||||
.click($('button').withText('Log out'))
|
.click($('button').withText('Log out'))
|
||||||
.click($('#modal-dialog button').withText('OK'))
|
.click($('.modal-dialog button').withText('OK'))
|
||||||
.expect($('.container').innerText)
|
.expect($('.container').innerText)
|
||||||
.contains("You're not logged in to any instances")
|
.contains("You're not logged in to any instances")
|
||||||
})
|
})
|
||||||
|
|
|
@ -10,14 +10,14 @@ fixture`108-compose-dialog.js`
|
||||||
test('can compose using a dialog', async t => {
|
test('can compose using a dialog', async t => {
|
||||||
await t.useRole(foobarRole)
|
await t.useRole(foobarRole)
|
||||||
await scrollToStatus(t, 15)
|
await scrollToStatus(t, 15)
|
||||||
await t.expect(modalDialog.getAttribute('aria-hidden')).eql('true')
|
await t.expect(modalDialog.exists).notOk()
|
||||||
.expect(composeButton.getAttribute('aria-label')).eql('Compose')
|
.expect(composeButton.getAttribute('aria-label')).eql('Compose')
|
||||||
await sleep(2000)
|
await sleep(2000)
|
||||||
await t.click(composeButton)
|
await t.click(composeButton)
|
||||||
.expect(modalDialog.hasAttribute('aria-hidden')).notOk()
|
.expect(modalDialog.hasAttribute('aria-hidden')).notOk()
|
||||||
.typeText(modalDialog.find('.compose-box-input'), 'hello from the modal')
|
.typeText(modalDialog.find('.compose-box-input'), 'hello from the modal')
|
||||||
.click(modalDialog.find('.compose-box-button-compose'))
|
.click(modalDialog.find('.compose-box-button-compose'))
|
||||||
.expect(modalDialog.getAttribute('aria-hidden')).eql('true')
|
.expect(modalDialog.exists).notOk()
|
||||||
await sleep(5000)
|
await sleep(5000)
|
||||||
await scrollToTopOfTimeline(t)
|
await scrollToTopOfTimeline(t)
|
||||||
await t.hover(getNthStatus(0))
|
await t.hover(getNthStatus(0))
|
||||||
|
|
|
@ -6,7 +6,7 @@ const SCROLL_INTERVAL = 3
|
||||||
|
|
||||||
export const settingsButton = $('nav a[aria-label=Settings]')
|
export const settingsButton = $('nav a[aria-label=Settings]')
|
||||||
export const instanceInput = $('#instanceInput')
|
export const instanceInput = $('#instanceInput')
|
||||||
export const modalDialog = $('#modal-dialog')
|
export const modalDialog = $('.modal-dialog')
|
||||||
export const modalDialogContents = $('.modal-dialog-contents')
|
export const modalDialogContents = $('.modal-dialog-contents')
|
||||||
export const closeDialogButton = $('.close-dialog-button')
|
export const closeDialogButton = $('.close-dialog-button')
|
||||||
export const notificationsNavButton = $('nav a[href="/notifications"]')
|
export const notificationsNavButton = $('nav a[href="/notifications"]')
|
||||||
|
|
Loading…
Reference in a new issue