Giter Club home page Giter Club logo

dalek's Introduction

dalek


https://github.com/dalekjs/dalek

test.open()
  .assert.text().is()
  .assert.visible()
  .assert.attr()
  .done();
  
test.open('http://doctorwhotv.co.uk')
  .assert.chain()
    .text('#nav').is('Navigation')
    .visible('#nav')
    .attr('#nav', 'data-nav', 'true')
  .end()
  .done();

test.open('http://doctorwhotv.co.uk')
  .assert.chain()
    .query('#nav')
      .text().is('Navigation')
      .visible()
      .attr('data-nav', 'true')
    .end()
  .end()
  .done();
  
test.open('httpL..doctorwhotv.co.uk/')
  .assert.chain()
    .query('#nav')
      .text().is('Nabigation')
      .visible()
      .attr('data-nav', 'true')
    .end()
  .end()
  .done();
  
test.assert.numberOfElement('#blog-overview .teaser', 4, '4 blog teasers are present');

test.assert.numberOfElement('#blog-overview .teaser')
  .is(4, '4 blog teasers are present')
  
test
  .assert.val('#the-doctors', 10, 'David is the favourite')
  .click('#the-doctors option:last')
  .assert.val('#the-doctors', 11, 'Matt is now my favourite, bow ties are cool')

test
  .open('http://unicorns.rainbows.io')
  .assert.css('#superColoredElement', 'background-color', 'rgba(255, 0, 0, 1)')
  .assert.css('#superColoredElement', 'color', 'rgba(0, 128, 0, 1)')
  .done();
  
test
  .open('http://unicorns.rainbows.io')
  .assert.css('#fancyPlacedElement', '', '>50px')
  .assert.css('#fancyPlacedElement', 'top', '<150px')
  .assert.css('#fancyPlacedElement', 'top', '>150px')
  .assert.css('#fancyPlacedElement', 'top', '<50px')
  .done();
  
test
  .open('http://localhost:5000/index.html')
  .assert.width('#fixed-dimensions', 100)
  .assert.width('#fixed-dimensions').is(100)
  .assert.width('#fixed-dimensions').is.lte(110)
  .assert.width('#fixed-dimensions').is.between([90, 110])
  .done();
  
test
  .open('http://doctor.thedoctor.com/doctor')
  .assert.doesntExist('#the-master', 'The master elemnet has not been seen')
  .done();
  
 
 test
  .open('http://dalekjs.com/guineapig/')
  .assert_attr('#dtaDiv').is.not('data-spot', 'doc', 'Spotis not a dog!')
  .done();
  
test
  .open('http://dalekjs.com/guineapig/')
  .assert.attr('#dataDiv', 'class', 'wellImUpperUpperClassHighSociety')
  .done();

test
  .open('http://dalekjs.com/guineapig/')
  .assert.attr('#dataDiv', 'class').to.contain('upperUpperClass')
  .done();
#superColoredElement {
  background-color: rgba(255, 0, 0, 1);
  color: rgba(0, 128, 0, 1);
}

#fancyPlacedElement {
  top: 100px;
}

dalek's People

Contributors

takagotch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.