1.0.0 • Published 8 years ago
gemifunc v1.0.0
Gemifunc
Gemifunc is a one-function module with which you can describe all gemini tests in the form of an array of data and run it.
Todo:
- Nested tests
Installation
Install Gemini and all the dependencies for gemini
And install Gemifunc in your project
$ npm install gemifuncUsage and example
Add to test file data and our function
    const gemifunc = require('gemifunc');
    const testData = [
        {
            name: 'test',
            url: '/',
            capturedElements: '.button',
            states: [
                {
                    name: 'plain', 
                    callback: null
                },
                {
                    name: 'hovered',
                    callback: (actions, find) => {
                        actions.mouseMove('.button');
                    }
                }
            ]    
        }
    ];Then run a test
    gemifunc(testData);1.0.0
8 years ago