Code Monkey home page Code Monkey logo

witness's Introduction

witness's People

Contributors

andrewdavey avatar ryansroberts avatar matt-mercer avatar

Stargazers

 avatar Mike Coolin avatar  avatar Graeme Foster avatar Brad Jones avatar steve flitcroft avatar Alisson Cavalcante Agiani avatar

Watchers

 avatar James Cloos avatar

witness's Issues

Settings cookie is a session cookie

Very handily witness stashes the settings selected on the setup screen in a cookie, the cookie is a session cookie though and is lost between browser sessions, would it be possible to make this a persistant cookie with a reasonable expiry ?

Reload button doesn't ..

Is the reload button supposed to reload the spec files ( ie pick up changes made to the tests without going back to the 'setup' screen ) ? If so .. it doesn't seem to reload / pick up changes to the tests ...

Add pause and/or stop button

Clicking Run All by mistake can be annoying, especially if, for example, the web server under test is not running yet.
Add a stop button to the UI.

This may require surgery to the underlying action runner to add cancellation support.

Implement specification file reload

Rather than reloading the entire runner, just reload the selected specification file or directory.

Will need a UI overlay to display download and parse log and errors.

should.beBetween

Add inclusive and exclusive boundary support.

should.beBetween 100, "exclusive", 200, "inclusive"
should.beBetween 100, 200, "inclusive"

?

Parametrise async action timeouts

Other than hacking the global default timeout for AsyncAction, there should be a way to set the timeout of any async action instance.

Perhaps a modifier function:

when: loadPage("/").withTimeout(5000)

Add beVisible assertion

dsl.extendShould({

beVisible: {
    getActual: function (propertyNames) {
        return jQuery(propertyNames[0], this.document);
    },
    test: function (actual) {
        return actual.is(":visible");
    },
    description: function (selector) {
        return selector + " should be visible";
    },
    error: function (selector, actual) {
        return selector + " is not visible";
    }
}

});

Multiple asserts on same selector

If in a "then" assertion you test different conditions on the same selector, e.g.:

"#myDiv span": should.haveText "This text"
"#myDiv span": should.match 1

only the second assertion is picked up by witness.

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.