Skip to content

Updated pupeteer test for search results page

Fixes #74 (closed)

Short description of what this resolves:

Now the tests pass for profile.test.js and the checks are passing when running npm test for UI testing. The tests are written in Pupeteer Puppeteer which offers Headless Browser Testing for Google Chrome. It allows the tester to perform the actions on the Chrome browser extension using commands in JavaScript.

Changes proposed in this pull request:

  • written pupeteer unit test for search results page and now the checks pass for profile.test.js
  • When running npm test, it redirects to search results page where the selected authors were registered and searched
  • Puppeteer being a node library provides a high-level API to control headless Chrome or Chromium browsers over the DevTools Protocol.
  • For frontend UI Testing to run successfully as shown in the project tests testing, it can also be configured to use full (non-headless) Chrome or Chromium.

Checklist

  • My branch is up-to-date with the Upstream develop branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Screenshot_from_2022-04-07_00-00-44

Edited by Subhangi Choudhary

Merge request reports