Skip to content

e2e tests frequently fail to login via login/OAuth dialog opened by Circuit SDK  #69

@bahnson

Description

@bahnson

Summary

The automated e2e-Tests of our app frequently fail during the login/OAuth dialog via Circuit SDK.
After entering email, clicking next, entering password, and clicking sign in, the dialog switches back to the email field, instead of showing the "Allow access" button.

Circuit login problems in e2e-Tests

Details

The behaviour was investigated by running the same e2e test spec in repeated runs, each running approx. 20 sec. and performing a Circuit login before test actions, and a Circuit logout afterwards.
After several successful tests (approx. 15 tests), there are a number of subsequent tests that fail to login. After that, succeeding and failing tests alternate, with fewer succeeding tests. In 100 repeated e2e runs, 55 runs fail during login.

Retrying email and password input is not a workaround, the login dialog will cycle between email and password prompts, then. Closing and re-opening the Circuit login dialog, starting login from scratch, is also not working around the problem.

So far, our best explanation is that we're struggling with some sort of DOS-prevention mechanism in the Circuit backend. At least, it seems reasonable for Circuit to have such a mechanism and it seems reasonable that our test setup triggers it.

We'd really appreciate if we could exchange ideas on what is causing the observed behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions