Git Product home page Git Product logo

courgette's People

Contributors

benjclark avatar canvaspixels avatar dependabot[bot] avatar evandro-machado avatar gminova avatar siobhan1408 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

courgette's Issues

Get working on Windows

Currently cucumber-protractor has only been tested on mac. Get it working for those who are using Windows

Add wait step

Add step for:

When I wait '1' second
When I wait '2' seconds
When I wait '3' seconds

Windows support

Courgette is working on linux but it doesn't work on windows at the moment (didn't test mac).

Fix compatibility with FirefoxDriver

Currently the following are not working with FirefoxDriver:

  • Then I expect the url 'URL' is opened in a new tab
  • When I press 'KEY'
  • When I submit the 'LOCATOR'

Delete snippets in repo before recreating

If the snippet-code changes or one if deleted, the snippet still remains, the folders inside snippets should be deleted before they're create on npm run build-readme-and-snippets

''Page object xxx not found" misleading error

One locator has been doubled up on 2 page objects or page and component - test will crash with an error message that 'xxx page object not found' - xxx is the page object where locator was defined at the first point

.steps vs. .js files

We've been using Courgette for a while now and are now at the point where we want to refactor our tests to have short complicated tests in the .feature files (these should be readable by any person in the organization), simple and reusable step definitions in the .steps file (those should be readable by the developers and QA) and then the common-step-definitions.js should only be read and written by the developers.

We realized that it does not work this way, since loadSteps.js is only including the predefined JavaScript steps, not those that we have written internally (we use them to sort tables, randomize input and iterate over fields).

What is your stance on this? How would you use Courgette to achieve a three-layered approach as I have outlined above?

Change env vars to accept uppercase wi underscores

  • courgetteTimeout will become COURGETTE_TIMEOUT
  • disableHeadless will become COURGETTE_HEADLESS=false or DH=1 for short
  • linearise will become COURGETTE_LINEARISE
  • showStepDefinitionUsage will become COURGETTE_SHOW_STEP_DEFINITION_USAGE
  • DEBUG will become COURGETTE_DEBUG
  • tags will become COURGETTE_TAGS
  • browser will become COURGETTE_BROWSER

Set cookie action triggers an InvalidCookieDomain error in firefox 78

Hi,

The set cookie action triggers an InvalidCookieDomain error in firefox 78.

Tags: @courgette-bdd, @courgette-bdd-get-started-reusable-steps
Step: Given I am on the courgette homepage
    Steps group step: And I set the cookie 'MCPopupClosed' with value 'yes'
Location: reusable.steps
Feature: uiTests/features/courgette-homepage-bdd.feature:4
Error: InvalidCookieDomainError: Cookies may only be set for the current domain (courgette-testing.com)
    at World.theStepDef (/home/administrateur/test_courgette/node_modules/courgette/uiTestHelpers/hooks/loadSteps.js:115:35)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

The error comes from the 'domain:'localhost' line into the file
courgette/uiTestHelpers/stepDefinitions/actions/setCookie.js

When I force this value with the proper domain, all is ok

Is it able either to get automatically the domain from the URL to set the cookie domain or to pass it as a parameter ?

Best regards,
Patrice Fontaine

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.