@nebula.js/sn-nav-menu
Version:
A navigation menu object for Qlik Sense
42 lines (24 loc) • 1.32 kB
Markdown
# sn-nav-menu
## !Experimental
A navigation menu object for Qlik Sense implemented as a nebula.js supernova.
## Developing
- Install with `pnpm install`
- Transpile code: `pnpm build` (or `pnpm build:watch`)
- Run it using nebula serve `pnpm start`
## Testing
Run unit tests with:
`pnpm test:unit`
# Rendering tests
Rendering tests are running playwright. Execute rendering tests with `pnpm test:e2 --headed`.
Rendering test compares a baseline snapshot with a current version of the same object. The output is then stored under `baselines`. It is important to take the baseline from the build in your PR and not your local baselines which is stored under `baselines-local`. The report with baselines can be found under summary under a link called test report.
You can use the action called update snapshot to trigger a commit into your branch that automatically updates the snapshots.
1. Go to actions tab
2. Click on Build, validate, (release) workflow
3. Open the Run workflow dropdown menu to the right
4. Choose your branch and tick the update_snapshot
5. Click Run workflow - now a commit will be done to your branch with updated snapshots
## Linting
Run lint with:
`pnpm lint`
## Releasing
Trigger the github action `Build, validate, (release)` and make sure you tick the `release` checkbox.