Write acceptance tests from user's perspective. Every command is described as an action of a user visiting a site.
CodeceptJS provides a general high-level API which can easily be executed using one of popular test runner libraries:
Control browser in realtime with API of CodeceptJS. Click buttons, fill fields, try different locators inside a running test!
Feature('CodeceptJS Demonstration'); Scenario('submit form successfully', (I) => I.amOnPage('/documentation') I.fillField('Email', 'email@example.com') I.fillField('Password', '123456') I.checkOption('Active') I.checkOption('Male'); I.click('Create User') I.see('User is valid') I.dontSeeInCurrentUrl('/documentation') });
Learn what makes CodeceptJS different from current solutions
CodeceptJS is based on Mocha and uses WebDriverIO library behind the scene. However, complexity of WebDriver libraries are hidden inside DSL for you to concentrate on test scenarios. That also makes CodeceptJS easy to maintain and read.
CodeceptJS is a high-level testing system which incorporates Protractor as a test execution backend. You can write tests in a simple and readable DSL and make them be executed with Protractor for your AngularJS application