-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user-status tests #81
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please fix the formatting issues? Also click
is not being imported in a test file
tests/acceptance/user-status-test.js
Outdated
setupApplicationTest(hooks); | ||
|
||
test('Should update the status on button clicks', async function (assert) { | ||
await visit('/user-status'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This page will be behind authentication, right?
How do we know that the user has logged in?
assert.equal( | ||
this.element.querySelector('[data-test-mainHeading]').textContent.trim(), | ||
'Thank you for connecting your GitHub!', | ||
'Correct Heading' | ||
); | ||
assert.equal( | ||
this.element.querySelector('[data-test-subHeading]').textContent.trim(), | ||
'Please complete the signup in order to:', | ||
'Correct Subheading' | ||
); | ||
assert.equal( | ||
this.element.querySelector('[data-test-li1]').textContent.trim(), | ||
'Use Features', | ||
'Correct list item' | ||
); | ||
assert.equal( | ||
this.element.querySelector('[data-test-li2]').textContent.trim(), | ||
'Display yourself on the (members) page', | ||
'Correct list item' | ||
); | ||
assert.equal( | ||
this.element | ||
.querySelector('[data-test-signup-button]') | ||
.textContent.trim(), | ||
'Get Started', | ||
'Correct button title' | ||
); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't checking if a specific keywords is present would be better here?
c5de75e
to
47dd4c4
Compare
✅ Deploy Preview for staging-my ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Testing user-status component
/user-status
route loads and has expected componentsAssumptions
/user-status
routeButton
componentCloses #68