Skip to content

introduce intention revealing UI element specific helper functions #19

@cer

Description

@cer

The page object functions are written in terms of low level functions.

It would be better to introduce some helper functions.

This is a repeated pattern:

    await waitClickAndType(page, SEL.FORM_FIELD_ADDRESS, testData.address);
    await waitForTimeout(page, 10);

could be replaced by

    textField(page, SEL.FORM_FIELD_ADDRESS).enter(testData.address)
  • Removes duplication
  • Makes it clear what is happening

Metadata

Metadata

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