describe('player with injection', function() {

    before(function(done) {
        driver.get('/examples/videojs-player-injection/').then(done);
    });

    it('should create initialize player with poster at fullscreen size', function() {
        expect('#wrapper_video_example').dom.to.be.visible();
        expect('#wrapper_video_example').dom.to.have.htmlClass('video-js');
        expect('#wrapper_video_example').dom.to.have.htmlClass('vjs-mest-skin');
        expect('#wrapper_video_example').dom.to.have.htmlClass('mest-video');
        expect('button.vjs-big-play-button').dom.to.be.visible();
    });

    it('should click on video and play', function(done) {
        driver.findElement(by.css('button.vjs-big-play-button')).click().then(function(){
            expect('.vjs-poster').dom.not.to.be.visible();
            browser.sleep(10000).then(done);
        });
    });
});
