How to identify which version of bootstrap used in...
# i-need-help
b
Basically, In my angular application in dev env, I want to upgrade it to v5.2.3, so some of the class name is changed. Now I want to identify which bootstrap version did our application used using cypress, so that I would use bootstrap class conditionally based on it's version, so that the my test cases would also run in beta env which is using the old bootstrap version (v4)
g
According to https://stackoverflow.com/questions/15335537/bootstrap-how-do-i-identify-the-bootstrap-version you can grab
window.bootstrap.Tooltip.VERSION
via cy.window and cy.its commands
I probably should write a blog post about it
b
Thanks for help @gray-kilobyte-89541 🙂 . I want to ask that Is it possible to window.bootstrap.Tooltip.VERSION store as env variable at the start up of our test and then we simply uses constant based on our env variable so, we could reduce the code and reduce the computation?