Adding more tests
Let's continue writing more tests and structuring them into sets divided by fixtures.
Adding the new issue creation test
We will start from Create a new issue
test in the Redmine entities creation tests
fixture:
const { Selector, ClientFunction } = require('testcafe');const { stamp } = require('js-automation-tools');
Note how we are creating a second set of random digits. We need them as now the tests are creating two projects, and each project should have a unique name:
const randomDigits1 = stamp.getTimestamp();const randomDigits2 = stamp.resetTimestamp();const getPageUrl = ClientFunction(() => { return window.location.href;});fixture('Redmine log in tests') .page('http://demo.redmine.org/');// ...fixture('Redmine entities creation tests') .page('http://demo.redmine.org/');test('Create a new project', async...