improve tests

This commit is contained in:
Nolan Lawson 2018-03-27 08:38:40 -07:00
parent 58b700788c
commit ddd32a2223
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@
position: -webkit-sticky;
position: sticky;
top: 10px;
z-index: 10;
z-index: 200;
}
.compose-content-warning-wrapper {

View File

@ -11,7 +11,8 @@ test('can compose using a dialog', async t => {
await t.useRole(foobarRole)
await scrollToStatus(t, 15)
await t.expect(modalDialog.getAttribute('aria-hidden')).eql('true')
.click(composeButton)
await sleep(1000)
await t.click(composeButton)
.expect(modalDialog.hasAttribute('aria-hidden')).notOk()
.typeText(modalDialog.find('.compose-box-input'), 'hello from the modal')
.click(modalDialog.find('.compose-box-button-compose'))