Skip to content

Decouple fixtures from POs #255

Description

@kmike

I think we have a few issue with the current test fixture approach:

  1. You must create a PO before creating a test fixture. This is backwards.
  2. It should be possible to test several POs against a single test fixture.
  3. It should be easier to check PO against a fixture without involving pytest test discovery.
  4. When a field raises an exception, other fields can't be tested #254 (a sepatate issue)

To address 1-3, I think we should un-tie fixtures from concrete page objects. You have a folder with data, it contains inputs and outputs. As soon as there are enough inputs for page object to produce the output, it should be possible to test any page object against this folder, without special requirements for the folder name. There could be a sepate layer for pytest discoverability.

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