Skip to content

Improving the docs: browser testing! #115

Open
@marteki

Description

@marteki

The testing guidelines have very little information about what functional browser testing looks like in D&D, and the stuff that's there now might be a bit out-of-date.

Also, in different code reviews of the same browser test spec, I've received conflicting information from reviewers about what "best practice" should be for a particular line. Maybe we could add some more guidance around what our best practices are for browser testing?

Current behavior

  • From the "Browser testing" section of the "Testing" guidelines page:

    Most CFPB projects use behave for browser testing.

  • From the code reviews I've described: no guidance on whether we have a clear preference for toBe.(true) vs. toBe­Tru­thy() vs. toBeTrue(), and when we might choose one over another.

Expected behavior

  • Inclusion of protractor in the description of what we use. It's used across consumerfinance.gov in general (and particularly on some specific tools).
  • If there are coding best practices that we have a clear preference for at the Bureau, we state what they are. For example, if we prefer to use .toBeTrue() or .toBe(true) to evaluate the value produced by something like .isDisplayed() rather than toBe­Tru­thy() (because .isDisplayed() will always deliver a Boolean promise), we could state that. And if we truly want it up to the discretion of each individual programmer, we state that.

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