Code Monkey home page Code Monkey logo

behatcommoncontext's People

Contributors

jdecool avatar jverdeyen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

behatcommoncontext's Issues

I get suite has undefined steps

Maybe this is not issue, but I did install your baheatcommoncontext library
behat.yml
`default:
suites:
default:
contexts:
- nwcontext:form
- nwcontext:formstone
- nwcontext:select2:
timeout: 60

extensions:
    Laracasts\Behat\ServiceContainer\BehatExtension:
        env_path: .env.behat
    Behat\MinkExtension\ServiceContainer\MinkExtension:
        default_session: laravel
        base_url: http://localhost:8000/
        laravel: ~
        selenium2:
            browser: "firefox"
            wd_host: "http://localhost:4444/wd/hub"
    Novaway\CommonContexts\Extension: ~`

and when I add command:
$ /d/sites/admins/voyager/adminlaravelversion55/admin/vendor/behat/behat/bin/behat -dl default | Wanneer /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)" without loosing focus$/ default | Wanneer /^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)" without loosing focus$/ default | Wanneer /^(?:|I )fill in selecter "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in selecter "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in dropdown "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in dropdown "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in select2 "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in select2 "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in select2 "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)" and wait (?P<time>(?:[^"]|\\")*) seconds until results are loaded$/ default | Wanneer /^(?:|I )fill in select2 "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)" and wait (?P<time>(?:[^"]|\\")*) seconds until results are loaded$/ default | Wanneer /^(?:|I )fill in select2 input "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/ default | Wanneer /^(?:|I )fill in select2 input "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)" and select "(?P<entry>(?:[^"]|\\")*)"$/ default | Dan /^(?:|I )should see (?P<num>\d+) choice(?:|s) in select2 "(?P<field>(?:[^"]|\\")*)"$/

so it is there!

Then I add to
Then I fill in select2 "Name" with "key"

This is my html:
<span class="select2 select2-container select2-container--default select2-container--focus" dir="ltr" style="width: 62px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-search_key-container"><span class="select2-selection__rendered" id="select2-search_key-container" title="Id">Id</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>

but when I run behat
I get next:
` >> default suite has undefined steps. Please choose the context to generate snippets:

[0] None
[1] Novaway\CommonContexts\Context\FormContext
[2] Novaway\CommonContexts\Context\FormstoneContext
[3] Novaway\CommonContexts\Context\Select2Context

3

--- Ontbrekende stappen in Novaway\CommonContexts\Context\Select2Context. Definieer ze met de volgende fragmenten:

/**
 * @Given I am on :arg1
 */
public function iAmOn($arg1)
{
    throw new PendingException();
}

/**
 * @Then I should see :arg1
 */
public function iShouldSee($arg1)
{
    throw new PendingException();
}

/**
 * @Then I fill in :arg1 with :arg2
 */
public function iFillInWith($arg1, $arg2)
{
    throw new PendingException();
}

/**
 * @Then I press :arg1
 */
public function iPress($arg1)
{
    throw new PendingException();
}

/**
 * @Then I follow :arg1
 */
public function iFollow($arg1)
{
    throw new PendingException();
}

/**
 * @Then I sleep for :arg1 seconds
 */
public function iSleepForSeconds($arg1)
{
    throw new PendingException();
}

`

Should I define all of this, because in your library it alrady exists!
So I think I shouldn't have to do it?

wait for ajax call doesn't work

Hello,

When I fill select2 input and ajax call is thrown.
This line : $this->getSession()->wait(10000, '(0 === jQuery.active)'); should wait for the answer, but it doesn't.

There is a problem with my config or with the code ?

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.