module.exports = function (frame, assert, browserWidth, helper) {
    describe('Tooltip', function () {
        var tooltip;
        var tooltipContent;

        beforeEach(function () {
            frame.reset();
            tooltip = frame.get('#tooltip as24-tooltip').toDomElement();
        })

        it('Hover tooltip', function (done) {
            setTimeout(function () {
                helper.hoverOn(tooltip);
                setTimeout(function () {
                    tooltipContent = frame.get('.sc-tooltip-content.sc-tooltip-shown').toDomElement();
                    assert.include(tooltipContent.innerText, 'Information in tooltip', 'contains');
                    done();
                }, 150); //wait for text
            }, 100); //wait for reseting
        });

        it('Click tooltip', function (done) {
            return setTimeout(function () {
                helper.click(tooltip);
                setTimeout(function () {
                    tooltipContent = frame.get('.sc-tooltip-content.sc-tooltip-shown').toDomElement();
                    assert.include(tooltipContent.innerText, 'Information in tooltip', 'contains');
                    done();
                }, 150); //wait for text
            }, 100); //wait for reseting
        });
/*
        it('Check position of tooltip', function (done) {
            setTimeout(function () {
                helper.hoverOn(tooltip);
                setTimeout(function () {
                    tooltipContent = frame.get('#tooltip .sc-tooltip-shown').toDomElement();
                    assert.isOk(helper.hasClass(tooltipContent,'sc-tooltip-top'), 'position top');
                    done();
                }, 100); //wait for text
            }, 100); //wait for reseting
        });
        */

    });
};

module.exports = function (frame, assert, browserWidth, helper) {
    describe('Tooltip', function () {
        var tooltip;
        var tooltipContent;

        beforeEach(function () {
            frame.reset();
            tooltip = frame.get('#tooltip as24-tooltip').toDomElement();
        })

        it('Hover tooltip', function (done) {
            setTimeout(function () {
                helper.hoverOn(tooltip);
                setTimeout(function () {
                    tooltipContent = frame.get('.sc-tooltip-content.sc-tooltip-shown').toDomElement();
                    assert.include(tooltipContent.innerText, 'Information in tooltip', 'contains');
                    done();
                }, 200); //wait for text
            }, 100); //wait for reseting
        });

        it('Click tooltip', function (done) {
            return setTimeout(function () {
                helper.click(tooltip);
                setTimeout(function () {
                    tooltipContent = frame.get('.sc-tooltip-content.sc-tooltip-shown').toDomElement();
                    assert.include(tooltipContent.innerText, 'Information in tooltip', 'contains');
                    done();
                }, 200); //wait for text
            }, 100); //wait for reseting
        });
/*
        it('Check position of tooltip', function (done) {
            setTimeout(function () {
                helper.hoverOn(tooltip);
                setTimeout(function () {
                    tooltipContent = frame.get('#tooltip .sc-tooltip-shown').toDomElement();
                    assert.isOk(helper.hasClass(tooltipContent,'sc-tooltip-top'), 'position top');
                    done();
                }, 100); //wait for text
            }, 100); //wait for reseting
        });
        */

    });
};

add more time for test