Skip to content

Behaviour test. Aboriginal form condition logic#1814

Open
ruscoder wants to merge 9 commits intoaehrc:mainfrom
beda-software:behaviour-test-framework
Open

Behaviour test. Aboriginal form condition logic#1814
ruscoder wants to merge 9 commits intoaehrc:mainfrom
beda-software:behaviour-test-framework

Conversation

@ruscoder
Copy link
Contributor

@ruscoder ruscoder commented Feb 6, 2026

Hello,
@roman-podrubny and I prepared a PR with behaviour tests for Aboriginal Health Check form for enableWhen expressions.

This PR includes:

  • The snapshot of AboriginalTorresStraitIslanderHealthCheckAssembled-0.4.0 copied from https://smartforms.csiro.au/ with removed readOnly attributes in order to make it editable through these tests.
  • All Enable when expressions (except age-related - they will be covered in the separate PR)
  • Added missing data-label/data-test attributes in order to refer to specific form items
  • Added addition helpers for interaction with the form (for checkbox, for tabs)

The tests are running using playwright with an existing command npm run test-715 that runs only these specific test suites.
Because of the high number of tests, it takes at least ~15min to run 138 tests. So, maybe them should not be run on every commit, and instead, from time to time to make sure that there's no regression in the AboriginalTorresStraitIslanderHealthCheck form.

Currently we're working on:

  • Covering all calculation logic
  • Filling the form by different age groups
    We will create PR as soon as it's ready

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.

2 participants