Skip to content

Instantly share code, notes, and snippets.

@mekhami
Last active March 9, 2018 13:26
Show Gist options
  • Save mekhami/df06b206301412fe8db87ac3a6870dc6 to your computer and use it in GitHub Desktop.
Save mekhami/df06b206301412fe8db87ac3a6870dc6 to your computer and use it in GitHub Desktop.
describe('Sample Detail page', function() {
beforeEach(function() {
cy.login()
cy.visit('/#/samples')
cy.get('.data-table tbody tr td a').first().click()
})
it('should default to the dependencies tab', function () {
cy.url().should('include', 'dependencies')
})
it('should have a collapsible info panel', function () {
cy.get('#hide-panel').click()
cy.get('.content__left').should('not.be.visible')
cy.get('#toggle-panel').click()
cy.get('.content__left').should('be.visible')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment