Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UI Integrations Test

Avatar for dodotdot dodotdot
November 18, 2021

UI Integrations Test

When system gradually become bigger or expands to match with business needs or policy, a good developer can’t rely only on manual testing because it will consume more of our resources. Therefor developer need to ensure that our code is good in terms of quality. So, it expected use different kinds of automated tests such as unit test and integration test.

Here we want to share how Blibli implement integration test in UI side, deep down on visual regression, and any usecase that we encounter thus far.

What will you learn?
- How Integration Test in UI Works
- The Technologies Behind Integration UI
- Best practice and strategies!

Avatar for dodotdot

dodotdot

November 18, 2021
Tweet

More Decks by dodotdot

Other Decks in Technology

Transcript

  1. Disclaimer Presentations are intended for educational purposes only and not

    to replace independent professional judgement. Statements of facts and opinions expressed here are those of the participant’s personally and do not necessarily reflect those of Blibli.com. Blibli.com does not endorse nor approve, and assumes no responsibility for the content, accuracy or completeness of the information presented.
  2. Motivation So much worry on each UI release, as 3rd

    party libraries may get unstable
  3. Objective Our objectives of having Integration Tests will cover: •

    Visual Regression Assurance => Avoid breaking changes • Feature Tests Coverage => Reduce bugs • Automated Tests => Improve assurance and reduce release cycle
  4. Definition What is UI Integration Test? UI integration test is

    a way to run the whole app in a real browser without hitting a real server. These tests are the ace in the hole of every front-end developer. They are blazing fast and less exposed to random failures or false negatives https://www.testim.io/blog/unit-test-vs-integration-test/
  5. Visual testing state-of-visual-testing-2020 / browserstack.com 54% of survey respondents cited

    catching bugs or regressions as a benefit of visual testing.
  6. Initial setup Prerequisites: • Node.js • Visual Studio Code or

    Webstorm or any code editing program How to add playwright in your project: 1. Install Node.js 2. Make sure that npm already included 3. Type "npm install playwright" in your terminal
  7. @blibli/integration-test-tools Benefits: • You can update/add mock data • Taking

    Snapshots • Getting helper library such as : responsive utils, network util, interaction util