mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-21 07:21:41 +02:00
The Gantt schema PR added Milestone.startDate, which: 1. Adds a second datetime-button to the NewMilestone form pool. The existing 'div.antiCard-pool button.datetime-button' locator matched both buttons and tripped Playwright's strict-mode check. Scope the target-date locator to .last() and add a sibling .first() helper for the start-date button. 2. Moves Status / Start date / Target date editors from the auto-generated side panel into EditMilestone's body (div.dates-row > div.date-cell > span.cell-label + <button>) in chronological order. The label span no longer has a sibling <div> wrapping the button — the button is a direct sibling. Switch the buttonStatus/buttonTargetDate XPath to following-sibling::button[1] and match the new class="cell-label" span. Add a buttonStartDate helper for the new editor row. Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com>
UI Sanity testing using play-wright
Prepare environment with docker to test final product.
rush update
rush build
rush bundle
rush docker:build
./prepare.sh
Restore to pure DB
To purge content of sanity workspace following command could be used.
./restore-workspace.sh
Prepare local dev environment
rush update
rush build
rush bundle
./create-local.sh
Restore to pure DB for Local setup
To purge content of sanity workspace following command could be used.
./restore-local.sh
Running UI tests
cd ./sanity
rushx uitest # for docker setup
rushx dev-uitest # for dev setup
Debugging UI tests
cd ./sanity
rushx debug -g test-name # for docker setup
rushx dev-debug -g test-name # for local setup
Capturing new testing scenarios
rushx codegen # for docker setup
rushx dev-codegen # for local setup
Test authoring.
Please update all navigation with using PlatformURI for CI and dev environment compatible testing.
Generate Allure
allure generate allure-results -o allure-report --clean
allure open allure-report