Skip to content

Testing modal visible #12

Description

@martync

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"
        );

    });

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions