Skip to content
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

22 login page #37

Merged
merged 15 commits into from
Jan 21, 2019
Merged

22 login page #37

merged 15 commits into from
Jan 21, 2019

Conversation

mattwr18
Copy link
Contributor

Issue addressed

fixes #22

Screenshots (if appropriate):

screenshot at 2019-01-11 19 16 16

Testing

have not added integration tests, but the coverage is looking good

@mattwr18
Copy link
Contributor Author

Not sure why it's failing the circleci build with permission denied...

Copy link
Member

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job getting this together. I have some comments and questions
Please review them

package.json Outdated Show resolved Hide resolved
return item.prop('name') === 'password'
})

it('should have a LogIn Header', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how valuable is this test

expect(mainHeader).toHaveLength(1)
})

it('should have a Form', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how valuable is this test

expect(wrapper.state().password).toBe('password')
})

it('should call handleLogIn and postLogInInfo when the form is submitted', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see the negative test

expect(wrapper.find('Form')).toHaveLength(1)
})

it('should update the state when email input value changes', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how valuable is this test

expect(wrapper.state().email).toBe('existing-user@example.com')
})

it('should update the state when password input value changes', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how valuable is this test

src/tests/reducers/usersReducer.test.js Outdated Show resolved Hide resolved
iziToast.show({
theme: 'light',
title: 'Success',
message: 'Have a look around',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text on the story is:
"Welcome back, Julie"

@ghost ghost assigned mattwr18 Jan 18, 2019
@ghost ghost added the review label Jan 18, 2019
- returns an object, not an array like other components
@joaopapereira joaopapereira merged commit 08695d9 into develop Jan 21, 2019
@ghost ghost removed the review label Jan 21, 2019
@delete-merged-branch delete-merged-branch bot deleted the 22-login-page branch January 21, 2019 15:23
mattwr18 added a commit that referenced this pull request Jan 29, 2019
* Get basic login to rails api set up
* Add styling, izitoast, success, and failure protocol
* Set up redux for Login, test
* Update endpoints, move test files
bryszard pushed a commit that referenced this pull request Apr 13, 2019
* Get basic login to rails api set up
* Add styling, izitoast, success, and failure protocol
* Set up redux for Login, test
* Update endpoints, move test files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login Page
2 participants