Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field labels and BDD tests for Bank Account screen #8677

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

nick-prater
Copy link
Contributor

This PR adds field labels to the inputs of the Bank Account page and
adds basic BDD tests for adding a bank account to an entity.

Previously just three unlabelled text boxes. This adds labels and
renders them correctly aligned in the two-column grid.
`entity_bank_account.bic` is a required field in the underlying
database. Make this a required field on the UI to allow client-side
validation.
Commit c90ddfa introduced
self-closing `<lsmb-text />` tags, which our HTML linter complains
about. Fixed with `<lsmb-text>...</lsmb-text>` tags.
This patch makes PageObject::App::Roles::Dynatable look only at visible
tables on the page, allowing it to have wider utility.

It can now be used with pages that have multiple tabs, where only
one tab is visible at a time, but each has a table element.

Now raises a warning if no visible tables are found, or if multiple
tables are visible, which can otherwise cause non-obvious failures
when writing tests.
Basic BDD tests for adding a bank account to a company.
Commit 601cc58 changed
PageObject::App::Roles::Dynatable to look only at visible dynatable
elements on the page, using an `is_displayed` test, but this
failed for testing with Firefox.

This patch is a simplification using just xpath to find the first
visible dynatable element, which works for both Chrome and Firefox
browser tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant