Skip to content

Preferred way of performing action on view before reading? #158

@mirekdlugosz

Description

@mirekdlugosz

In Satellite, we have a page with multiple tabs. One of the tabs has two checkboxes and their state determines content of table below. Checkboxes state is reset when you switch out of the tab.

In our automation, page is modelled as view and each tab is nested view.

What is preferred way of reading the page content, with setting said checkboxes at the same time?

read() methods don't take any arguments, so I can't pass in the value that would force the action before reading. I can read selected tabs, call page.tab.widget.update() and read page.tab again while it's active, but it feels like leaking framework details into test code. Then there is this solution, which I find awkward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions