summaryrefslogtreecommitdiff
path: root/tests/unit/Global
AgeCommit message (Collapse)AuthorFilesLines
2021-03-30Update all minor and patch releasesDixsie1-3/+1
Updated NPM packages with minor and patch releases only. Tested the UI locally and by building copying to the BMC and running in an overlay and did not observe breaking changes. Major releases are not updated in this commit as they require additional testing and code updates to address breaking changes and will be updated separately once those updates are stable. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I73c952a75a1148c5852a18d73b9065083fd8e94c
2021-01-29Update failing unit testsYoshie Muranaka2-2/+12
Accessibility updates for icon only buttons required updates to snapshot unit tests. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia2bb1576f53d3f38c4c68879b5273edd3d33b92d
2021-01-20Add unit test cases for search componentSukanya Pandey2-0/+94
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I9721a9bc8b1fce850b824a2f9d7a6d199c5e0236
2021-01-20Add unit test cases for loading bar componentSurenNeware2-0/+52
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ifcb488df080bd64ce9e9865befd4c044a73589e1
2021-01-20Run test script as part of the pre-commit hookDerick Montague2-0/+3
Now that we have added more unit testing, it will be beneficial to run the unit test script prior to check in. Eventually, we will want this to be part of the CI build process since Git pre-hooks can be avoided. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I59aad81a470176d2f6a5afeb130661c642f4d259
2021-01-12Fix broken TableToolbar snapshot testDerick Montague2-0/+7
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I37054cd6aabc619a001ced0d928aacd22f46ed3d
2021-01-12Fix broken info-tooltip spec and snapshotDerick Montague2-14/+25
- Two of the test are not needed since they are testing the vue internal functionality of rendering a title attribute value correctly and importing the right carbon icon. For this test the only tests needed is the snapshot. It could be debated that this component does not require a spec at all. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Icca107b185cd579d47877d50ec5763c5ffffc06a
2021-01-09Add unit test cases for table cell count componentSukanya Pandey2-0/+41
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Id948347cd38a9e58d21aaf4180afe8ab5c2f2ed7
2021-01-08Add unit test cases for status icon componentSukanya Pandey2-0/+65
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I58bb3e5f5fa9c02276b2031322ac01affeb17ca3
2021-01-07Update PageContainer snapshot testDerick Montague1-5/+4
The UI is rendering differently than the snapshot saved. I reviewed the difference and it is simply a difference with how the formatting of the class and id values. I did not see this issue when testing the PageContainer snapshot test. It is not clear why there is a difference, but if it were to fail again for a different user, we can remove the snapshot since the main test we want to pass is that the HTML element being rendered is the <main> element. To update the snapshot for an individual spec file, use the following command in the cli: npm run test:update -- -u tests/unit/Global/PageContainer.spec.js Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ieac495f893ba2025d2d6f4d3b7b49506bdf0ecae
2021-01-07Add unit test cases for info tooltip componentSurenNeware2-0/+41
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ic89aed1f8244073eab82cdc6f79dba9520585374
2021-01-07Add unit test cases for table toolbar componentSukanya Pandey2-0/+58
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I2e93244fcd8bbde7c9398cf0db56d5125614aa69
2021-01-07Add test case for input password toggle componentSukanya Pandey2-0/+65
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I00e3fc12a58d644d0aad3c0caf4a94d2ed435109
2021-01-05Add unit test cases for page container componentSurenNeware2-0/+31
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ia7895156d1a4551bd70f95cc0207bf72522fba0e
2020-12-02Add unit testing for page title componentSukanya Pandey2-0/+48
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I1fc54f54bd8e9a7d132eab0edaed94a4032143c8
2020-12-02Add unit testing for page section componentDerick Montague2-0/+37
Signed-off-by: Derick Montague <derick.montague@ibm.com> Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I1b3511f0dccaefb0732d5df3f21d10595f0fbd9a