README
otto
The BlueNova Otto CLI gives you the ability to interface with the BlueNova testing automation system to run and orchestrate e2e tests. Otto is here to automate you're manual testing!
Getting Started
Install the package and take a look at the commands available. If you have issues or questions, feel free to create an issue and tag @srosenbauer and @zrosenbauer.
npm
npm i @bluenova/otto
yarn
yarn add @bluenova/otto
Usage
The otto
package contains a cli tool in addition to utils used to write e2e tests for your applications.
NOTE: Currently you MUST git clone git@github.com:bluenovaio/otto-server.git
and run the server locally using yarn start
. This requirement will be removed in an upcoming bersion.
Writing Tests
import otto from '@bluenova/otto';
describe('example', () => {
it('renders the home page', async () => {
otto.navigate('https://bluenova.io');
otto.query('h1').hasValue('BlueNova');
otto.query('div.ant-typography')
.hasValue('We build tools that allow developers to focus on delivering immediate value to their end customer.')
.hasClass('description');
await otto.assert();
});
});
Running Commands
$ otto test