Skip to content

Instantly share code, notes, and snippets.

@cybrox
Last active March 20, 2019 16:07
Show Gist options
  • Save cybrox/99005be544ac1bfe74db7abac25a8bb9 to your computer and use it in GitHub Desktop.
Save cybrox/99005be544ac1bfe74db7abac25a8bb9 to your computer and use it in GitHub Desktop.
phx-ete8.js
it ("shows email not confirmed notification in dashboard for unconfirmed user", () => {
cy.factorydb('user', {
username: "Sven Gehring",
password: "password",
email: "[email protected]"
})
// This is another custom command we use for getting our auth token
cy.login('[email protected]', 'password')
cy.visit('/dashboard')
cy.get('#kc-content').find('[data-cy=email-confirm-alert]').should('exist')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment