Skip to content

"Accounts creating an account" test for my-saas-stripe fails.  #13

@idoan

Description

@idoan

I think there is an error related to the login popup window used during the sign up. Although test fails, when I manually followed the steps in the test case on chrome, everything went accordingly. So, the reason of fail is either stripe's popup window or PhantomJS's inability to render that popup window. here is the failing test output:
`

  1. Accounts creating an account
    Failure/Error: exp_input = find("#cc-exp").native
    Capybara::ElementNotFound:
    Unable to find css "#cc-exp"

    ./spec/features/accounts/sign_up_spec.rb:42:in`block (3 levels) in <top (required)>'

`

Strangely, before I restarted my pc, although the same test fails, the fail point was .flash_notice coming after the above block. And the error line was something like:

Failure/Error: expect(page).to have_content(success_message) Capybara::ElementNotFound: Unable to find css ".flash_notice"

I tried printing out the page content with puts page.body before that failing find("#cc-exp").native line and here is the corresponding output:

`</style>

Sorry, there was a problem loading Checkout.
If this persists, please try a different browser.

This message will automatically close in 5 seconds.

<script type="application/json" id="StripeCheckoutConfig">`

and while I was manually following the test cast, I realized an unusual event. When I fill_in email and click on the next line, the popup swipes right for user to fill in the verification code. And since this unusual change isn't covered in your test case, this might be the reason of this failure. Of course, I am not sure. All the other test cases pass .

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