Skip to content

ibissource/iaf-gui-protractor

Repository files navigation

iaf-gui-protractor

Requirements

Make sure you have the following installed beforehand:

  1. NodeJS
  2. Protractor
  3. Google Chrome

When using this test suite for the first time, you need to install the project dependencies. You have to do this by using NPM package manager in your terminal:

  1. Navigate to project root folder
  2. Install dependencies by running npm i

Getting started

To run all tests, run the protractor conf.js command from the project root folder.

Fixing Chrome version error

Sometimes, you will get an error: session not created: This version of ChromeDriver only supports Chrome version XX

To fix this, please run: webdriver-manager update and update protractor to the newest version by running npm i -g protractor

Making new tests

⚠️ Tests are specified in the .spec.js files, we are using this styleguide for tests. ⚠️

To make sure each specfile will run correctly, we use a "beforeAll" to prepare for the tests:

  1. browser.get to load the page
  2. browser.wait to wait for an important element, to make sure the page is loaded correctly.
  3. A function to close the cookiebar if present. To make sure protractor can click elements.

About

IAF GUI Protractor tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published