Add tests for webapp functionalities - sidebar, back-to-top
Related T1768
Differential D1577
Add tests for sidebar, back-to-top kalpitk on Jun 13 2019, 9:50 AM. Authored by
Details
Add tests for webapp functionalities - sidebar, back-to-top Related T1768
Diff Detail
Event TimelineComment Actions Build is green Comment Actions Nice! Could you also add a test checking the width of the collapsed sidebar is lower than of the open sidebar? Comment Actions While working on the tests, I found that for non-lg devices (width<992), first time you press the push-menu, it doesn't toggle. Instead it adds 'sidebar-collapse' first time. I think there is some conflict between webapp-utils.js:5 and the bootstrap defaults. I couldn't find the exact cause to it. Comment Actions In that case should I move back-to-top tests to another file or keep it in the same sidebar.spec.js ? Comment Actions Nice! I agree with @vlorentz , you should split the tests into two spec files: sidebar.spec.js and back-to-top.spec.js. Once it is done, that diff can be landed. Comment Actions Build is green Comment Actions Sidebar tests fail. This is because, the cypress view is interpreted as sm by JS. I am updating the cypress config file (1920*1080) to ensure we are testing for lg devices by default. Comment Actions Build is green |