Skip to content

Instantly share code, notes, and snippets.

@mekhami
Created March 9, 2018 13:24
Show Gist options
  • Save mekhami/a1bd7622284c932aae480a795aab779b to your computer and use it in GitHub Desktop.
Save mekhami/a1bd7622284c932aae480a795aab779b to your computer and use it in GitHub Desktop.
module.exports = {
'sample info panel should be collapsible': function (browser) {
browser
.url(samplesUrl)
.waitForElementVisible('.data-table tbody tr td a', 5000)
.click('tbody tr td a')
.waitForElementVisible('#hide-panel', 5000)
.click('#hide-panel')
.waitForElementNotPresent('.content__left', 1000)
.assert.elementNotPresent('.content_left')
.assert.visible('#toggle-panel')
.click('#toggle-panel')
.waitForElementPresent('.content__left', 1000)
.assert.elementPresent('.content__left')
.end()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment