Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing modal visible #12

Open
martync opened this issue Jun 10, 2014 · 0 comments
Open

Testing modal visible #12

martync opened this issue Jun 10, 2014 · 0 comments

Comments

@martync
Copy link

martync commented Jun 10, 2014

Hi,

I'm trying to check if my modal is visible or not (using bootstrap 2).
All I got is a black window with django-casper.
I have no problem using directly casperjs command.

Any idea ?

Thanks.
Martyn

casper.test.comment('Testing form');

var helper = require('../../../../misc/tests/djangocasper.js');
var root_server = "";


helper.scenario(root_server + "/object/add/", function(){

    this.test.assertNotVisible(
        "#add_field_window",
        "The modal window is not visible"
    );

    this.click("#id_add_custom_field");

    this.wait(10000, function() {
        this.capture("Modal-where-are-you.png", {top: 0, left: 0, width: 900, height: 900})
        this.test.assertVisible(
            '#add_field_window',
            "The modal window is visible"
        );

    });

});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant