CodeceptJS — современные end2end тесты для NodeJS
Пример кода:
Scenario('search github', (I) => {
I.amOnPage('https://github.com/search');
I.fillField('Search GitHub', 'CodeceptJS');
I.pressKey('Enter');
I.see('Codeception/CodeceptJS', 'a');
});
Scenario('register', (I) => {
I.amOnPage('https://github.com');
within('.js-signup-form', function () {
I.fillField('user[login]', 'User');
I.fillField('user[email]', 'user@user.com');
I.fillField('user[password]', 'user@user.com');
I.click('button');
});
I.see('There were problems creating your account.');
});