{"size": 938, "ext": "js", "max_stars_repo_path": "tests/cucumber/features/step_definitions/map_steps.js", "max_stars_repo_name": "HuascarMC/fl-maps", "max_stars_repo_stars_event_min_datetime": "2020-06-27T09:11:02.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-27T17:48:52.000Z", "max_issues_repo_path": "tests/cucumber/features/step_definitions/map_steps.js", "max_issues_repo_name": "HuascarMC/fl-maps", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/cucumber/features/step_definitions/map_steps.js", "max_forks_repo_name": "HuascarMC/fl-maps", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.5, "max_line_length": 95, "alphanum_fraction": 0.592750533}
(function () {

    'use strict';

    // You can include npm dependencies for support files in tests/cucumber/package.json
    //var _ = require('underscore');

    module.exports = function () {

        // You can use normal require here, cucumber is NOT run in a Meteor context (by design)
        var url = require('url');

        this.Given(/^I am a new user$/, function () {
            // no callbacks! DDP has been promisified so you can just return it

            return this.server.call('reset'); // this.ddp is a connection to the mirror
        });

        this.Then(/^I should see popup "([^"]*)"$/, function (expectedPopup) {
            // you can use chai-as-promised in step definitions also
            return this.client.
                waitForVisible('#map-canvas'). // WebdriverIO chain-able promise magic
                getText('.material-tooltip span').should.become(expectedPopup);
        });

    };

})();