UNPKG

barba.js

Version:

Barba.js it's a small, flexible and dependency free library that helps you creating fluid and smooth transition between your website's pages.

24 lines (19 loc) 582 B
module.exports = { 'Basic test' : function (browser) { browser .url(browser.globals.baseUrl + '/tests/e2e/test-1/index.html') .expect.element('#barba-wrapper').to.have.attribute('aria-live').equals('polite'); browser .assert.title('home') .assert.urlContains('index.html') .assert.cssClassPresent('body', 'home'); browser .click('a[href="about.html"]') .pause(1000); browser .assert.title('about') .assert.urlContains('about.html') .assert.cssClassPresent('body', 'about'); browser.end(); } };