Skip to content

imuchnik/flapjack-functional-tests

Repository files navigation

Quick start:

# Download this repo:
$ git clone [email protected]:imuchnik/flapjack-functional-tests.git && cd flapjack-functional-tests

# Install Protractor (it will also automagically install webdriver-manager):
$ npm install -g protractor

# Download Selenium Server binaries:
$ webdriver-manager update

# Start Selenium Server:
$ webdriver-manager start

# Open a new tab and tell protractor to start testing:
$ protractor conf.js

Try editing FJ-about-smoke-spec.js and re-running protractor conf.js. Here are the different ways to select elements on a page. Protractor uses Jasmine for its test syntax so check out how to write expectations.

###Important note:

Protractor was created by the Angular team to do end-to-end testing of angular sites. It extends the selenium api and makes certain allowences for angularjs. To make it work correctly with non-angular sites you MUST add the following bit of code in every test suite.

beforeEach(function() {
    return browser.ignoreSynchronization = true;
  });

####Going Forward...

we should follow Page Object model.

Here is good starting point

Enjoy! 😌

About

Functional test suite using protrator

Resources

Stars

Watchers

Forks

Packages

No packages published