Skip to content

~/spec/features/sign_in_spec.rb error? #1

Description

@RalphShnelvar

I believe in ~/spec/features/sign_in_spec.rb error?
expect(page).to have_content 'Invalid email or password.'
should be
expect(page).to have_content 'Invalid Email or password.'

The message I get from rspec is
`Failures:

  1. Sign in user cannot sign in if not registered
    Failure/Error: expect(page).to have_content 'Invalid email or password.'
    expected to find text "Invalid email or password." in "Invalid Email or password. Log in Email Password Remember me Sign up Forgot your password?". (However, it was found 1 time using a case insensitive search.)`

If I use "'Invalid Email or password'" then I get
`Finished in 0.76773 seconds (files took 1.76 seconds to load)

6 examples, 0 failures, 2 pending`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions