Add storybook and tests ICSHWI-9199
All threads resolved!
All threads resolved!
This merge requests adds Storybook (https://storybook.js.org/) to our application.
Storybook provides a way for us to visually document our components and the various states they can be in. This is very helpful when discussing visual changes. It also provides a method for us to set up components for testing.
In this merge request:
- Dependencies and configuration are added for storybook
- Storybook stories are added for the table components in our application
- Cypress component tests are added which make use of the table component stories
- Gitlab-CI is updated to build the storybook static web page and store it as an artifact
To check out the storybook, you can download and extract the artifact from the "build-storybook" job in the pipeline and open index.html
. You should see something like this:
Edited by John Sparger
Merge request reports
Activity
requested review from @zoltanrunyo and @imretoth
assigned to @johnsparger
added 10 commits
-
48e7ec05...5986da0e - 2 commits from branch
develop
- 5dd2b3d1 - Add storybook dependencies and configuration
- 2eaf3a71 - Relocate mock API and fixtures, add some new fixtures and endpoints
- cee635a6 - Add stories for tables and cypress tests that use them
- 7fb20912 - fix storybook dependency and unfix mockAPI
- b4e83bea - Update package-lock.json and fix a react-router import
- 9edbab33 - build storybook in gitlab-ci pipeline
- 7dcb3931 - Add image to build-storybook
- d9094d8d - Fix a react-router versioning problem in tests and update package-lock
Toggle commit list-
48e7ec05...5986da0e - 2 commits from branch
added 17 commits
-
d9094d8d...4dc7b455 - 6 commits from branch
develop
- 18f789c3 - Adjust IOCTable git reference width
- 6ca0a5b1 - Set minimum widths on table columns, horizontal scroll when overflow
- 78fae8d0 - Add storybook dependencies and configuration
- c1ea6cf1 - Relocate mock API and fixtures, add some new fixtures and endpoints
- 34e14889 - Add stories for tables and cypress tests that use them
- 80c4d63f - fix storybook dependency and unfix mockAPI
- 7e7954a7 - Update package-lock.json and fix a react-router import
- 97318afb - build storybook in gitlab-ci pipeline
- cf6fae0a - Add image to build-storybook
- d86d924a - Fix a react-router versioning problem in tests and update package-lock
- 188ccb57 - Fix column headers in table tests
Toggle commit list-
d9094d8d...4dc7b455 - 6 commits from branch
added 21 commits
-
188ccb57...1381ef36 - 12 commits from branch
develop
- 591f81a8 - Add storybook dependencies and configuration
- 3c60f122 - Relocate mock API and fixtures, add some new fixtures and endpoints
- dad48efa - Add stories for tables and cypress tests that use them
- dbc8b6aa - fix storybook dependency and unfix mockAPI
- d84b9cea - Update package-lock.json and fix a react-router import
- 4806e48b - build storybook in gitlab-ci pipeline
- a4b01b44 - Add image to build-storybook
- df1400b2 - Fix a react-router versioning problem in tests and update package-lock
- cf95464d - Fix column headers in table tests
Toggle commit list-
188ccb57...1381ef36 - 12 commits from branch
- Resolved by John Sparger
mentioned in commit 2c169ca8
Please register or sign in to reply