Commit Graph

11667 Commits

Author SHA1 Message Date
Zach Bloomquist 19a63a0f25 Only listen on loopback interfaces (#3666)
* https-proxy, server: only listen on loopback for ipv4/v6

* server: use supplied port

* https-proxy, server: remove ::1 listener

* server: add test that all servers only listen on lo, not other interfaces
2019-03-15 01:01:50 -04:00
Zach Bloomquist 9b8d4c2810 Make extension have a static ID so it can be whitelisted (#3674) 2019-03-15 00:50:53 -04:00
Zach Bloomquist 2f7de957b2 Support any valid HTTP method in cy.request (#3555)
* driver: support any valid method in cy.request

* driver: support stubbing any valid method

* driver: mysterious failing test

* commit for CI
2019-03-15 00:47:21 -04:00
Zach Bloomquist 5a0d8b5cfe Allow passing a list of space-separated specs to --spec (#3375)
* cli: add otherSpecs for varargs [wip]

* scripts: pass command-line args through to debugged command

* cli: parse space-delimited specs

* cli: undo unneeded

* cli: cleaned up parseVariableOpts, added warning

* cli: cleanup

* cli: add tests

* cli: glorious whitespace

* cli: a more robust test

* cli: better snapshot

* server: strip single-quotes around --spec arg

#2298
2019-03-15 00:42:46 -04:00
Ben Kucera 6a53b4bed1 allow .its to yield undefined (#3226)
* allow .its to yield undefined

* fix: undefined subject assertions bug

* move test to misc_spec

* fix up some tests
2019-03-15 00:37:44 -04:00
Silviu Alexandru Avram 2122320881 Add {home} and {end} to cy.type() (#3071)
* implemented fix draft

* removed an extra comment

* fixed two colliding variable names

* actual behaviour for home/end is begin/end of line, not paragraph

* refactored the selection method to use only selection.modify

* added some unit tests for {home}

* added more tests for home and end

* disclaimer for selection.modify API
2019-03-15 00:32:51 -04:00
renovate[bot] 6ff6ec50e3 chore(deps): update dependency @cypress/bumpercar to version 2.0.6 🌟 (#3690)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-03-13 22:14:53 +06:30
Jennifer Shehane 559be7b991 cypress-example-kitchensink from 1.5.0 to 1.5.1 (#3700) 2019-03-13 16:45:55 +06:30
renovate[bot] 99877dcd56 chore(deps): update dependency @types/lodash to version 4.14.122 🌟 (#3680)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-03-11 17:16:09 +06:30
renovate[bot] 4444548cf2 chore(deps): update dependency @babel/core to version 7.3.4 🌟 (#3263)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2019-03-11 11:45:31 +06:30
Jennifer Shehane cc5ccdfbe7 bump @babel/plugin-proposal-object-rest-spread (#3679) 2019-03-11 10:38:02 +06:30
Jennifer Shehane df322605a1 Bump cachedir from 1.3.0 -> 2.1.0 (#3660)
- Breaking change: Drop support for Node.js < 6.x]
- Use os.homedir() instead of os-homedir module (reduced dependency and
size)
2019-03-06 14:20:37 -05:00
Jennifer Shehane 2644cc8f36 bump tough-cookie (#3659)
- breaking change: no longer supports node version < 6
- bugfixes
2019-03-07 01:17:05 +06:30
Zach Bloomquist 4b060362e7 Fix automatically loading fixtures with more than one . in the name (#3606)
Fixes #1402

Also fixes a few TODO comments in the fixtures.coffee file along the way
2019-03-06 10:15:05 -05:00
Gleb Bahmutov 83d35d3725 remove stray circleci line, more CLI types comments 2019-03-05 13:09:50 -05:00
Gleb Bahmutov f81dc7a6b2 move 3rd party types to dev dependencies in CLI NPM package (#3425)
* wip: move lodash types to dev dependencies

* move blob-util types

* move types for minimatch

* do not lint types from minimatch

* move types sinon to dev dependencies

* move sinon-chai types to dev dependencies

* update tslint

* move types bluebird to dev dependencies

* move mocha types

* move jquery types to dev dependencies

* rename moment local wrapper

* move chai and chai-jquery

* refactor code for building CLI and dealing with folders

* linting

* include types subfolders

* replace types with relative paths

* transform sinon path to relative

* linting

* do not delete d.ts files

* linting

* chore: build npm package from this branch

* add minimatch relative reference

* work around minimatch

* set sinon to be relative load

* add readme to CLI

* linting readme
2019-03-05 12:49:42 -05:00
Zach Bloomquist e7ec9e8ea7 Don't show "Restore Pages" prompt (#3619)
Fixes #2048
2019-03-05 11:30:29 -05:00
Jennifer Shehane 0a87734bd5 Update error message when record key not found for project (#3628)
- close #1449
2019-03-01 16:57:12 -05:00
Ian Walter e4cb364cd8 Removing light (300) font weight from spec links in desktop GUI (#3065)
* Removing light (300) font weight from spec link

* Explicitly setting spec link font-weight to 400
2019-02-28 09:44:50 -06:00
renovate[bot] 0781e4dc92 chore(deps): update dtslint to 0.5.1 🌟 (#3611) 2019-02-28 09:24:25 -05:00
Gleb Bahmutov ecf98cfdec separate dtslint into its own CircleCI job (#3528)
* separate dtslint into its own CircleCI job

* fix indent
2019-02-28 09:07:44 -05:00
renovate[bot] f06aefa14c chore(deps): update dependency enzyme-adapter-react-16 to version 1.10.0 🌟 (#3601)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-27 13:57:29 -05:00
Zach Bloomquist d24285bbdd Visit with a POST and/or custom headers (#3489)
* driver, server: visit with a POST [wip]

* driver, server: allow sending body, headers, method in .visit

* driver: test: doublequotes

* driver: api cleanup, error handling

* driver, server: tests

* driver: only recognize visit(opts) if options is sole argument

* server: don't confuse options

* driver: validate method passed to 'visit'

* driver: validate that headers is an object

* driver: shows URL and not object in command log (fixes part of #678)

* cli: add new cy.visit(opts) invocation
2019-02-27 09:19:31 -08:00
Chris Breiding f70306a63c try v8 for reporter and runner caches (#3600) 2019-02-26 18:06:39 -05:00
Chris Breiding 36fd7ca902 match the reporter cache key (#3598) 2019-02-26 14:52:18 -05:00
Chris Breiding 8ef421da15 increment reporter cache key (#3596) 2019-02-26 14:36:19 -05:00
Jon Senchyna 83aa9c76d0 Pass all extra parameters to setInterval/setTimeout callback functions (#3593)
* Issue 3592: Forward *all* parameters to setInterval/setTimeout

* Issue 3592: Fix test linting error
2019-02-26 13:53:44 -05:00
renovate[bot] d079bb1b62 chore(deps): update dependency react to version 16.8.3 🌟 (#3591)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-26 11:36:16 -05:00
Jennifer Shehane a18dac6931 fix typo in index.d.ts file (#3588) 2019-02-25 23:04:21 +00:00
Louise Hayes 4c85c76554 closes #2871 (#3563)
* closes #2871

* closes #2871

* lowercase Run to run since in middle of sentence


Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2019-02-25 21:45:20 +00:00
koooge 38be316d0f Remove an unused package (#3291)
* Remove an unused package

Signed-off-by: koooge <koooooge@gmail.com>

* Delete .vagrant

Signed-off-by: koooge <koooooge@gmail.com>


Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2019-02-25 20:56:13 +00:00
renovate[bot] a9051cbb22 chore(deps): update dtslint to 0.5.0 🌟 (#3571)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-25 16:56:25 +00:00
Chris Breiding 6e80826415 Upgrade jsdom to 13.2.0 (#3584)
* bump jsdom versions to 13.2.0

* update reporter and runner test setup for latest jsdom
2019-02-25 11:46:20 -05:00
Jennifer Shehane 9d455545b3 convert dom element to jQuery element in order to properly check contains assertion (#3553)
- close #3549 
- obj.is and obj.find is not a function when used on regular el - needs
to be jQuery el

**Tests**
- [x] Write test

I can't figure out where the tests for these chai overrides are. Any help?
2019-02-22 09:27:59 -05:00
renovate[bot] 86be8c6833 chore(deps): update find-package-json to 1.2.0 🌟 (#3564) 2019-02-22 18:19:51 +06:30
Songyu-Wang 7a819f1b99 Reduce the number of log printed when install cypress in docker (#3504) 2019-02-22 12:04:46 +06:30
renovate[bot] 0462047f06 chore(deps): update dependency dtslint to version 0.4.9 🌟 (#3562)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-22 11:07:35 +06:30
Adam Stachowicz 48265dd60f Issue 3540: Fix baseUrl slash (#3546)
closes #3540 and #3545 

Tests:
```js
/// <reference types="Cypress" />

it('test url', function () {
    cy.visit('/')
    var baseUrl = Cypress.config('baseUrl')
    //baseUrl = baseUrl + '/'    // bug in Cypress - add slash
    cy.url().should('eq', Cypress.env('test_url'))
    cy.url().should('eq', baseUrl)
})

it('test url - copy paste from @jennifer-shehane', function () {
    cy.visit('/')
    cy.url().should('eq', Cypress.config('baseUrl'))
})
```

![obraz](https://user-images.githubusercontent.com/905878/53121397-10f83780-354c-11e9-8495-2474ced106e6.png)
2019-02-21 18:50:50 -05:00
renovate[bot] ee74bf5646 chore(deps): update dependency dtslint to version 0.4.8 🌟 (#3550)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-21 20:07:09 +06:30
renovate[bot] 258b58bef4 chore(deps): update eslint-plugin-cypress to 2.2.1 🌟 (#3534)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-20 19:05:30 +06:30
renovate[bot] b6794367e0 chore(deps): update dependency dtslint to version 0.4.4 🌟 (#3533)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-20 11:21:25 +06:30
renovate[bot] 44b12f8502 chore(deps): update dependency enzyme to version 3.9.0 🌟 (#3524)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-19 23:37:54 +06:30
renovate[bot] 9283499d4f chore(deps): update bootstrap to 4.3.1 🌟 (#3507)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-19 17:32:25 +06:30
renovate[bot] 75d863bdd3 chore(deps): update dependency cloudflare-cli to version .x 🌟 (#3510)
* chore(deps): update cloudflare-cli to 3.2.1 🌟

* chore(deps): update cloudflare-cli to 3.2.1 🌟


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-02-19 16:10:10 +06:30
renovate[bot] 5904d7c2ac fix(deps): update uuid to 3.3.2 🌟 (#3522)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-19 13:50:47 +06:30
renovate[bot] 5839e4fda2 chore(deps): update dependency card to version .x 🌟 (#3508)
* chore(deps): update card to 2.4.0 🌟

* Remove card devDep


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-02-19 12:59:46 +06:30
Brian Mann 151ee40bec purge all the server deps cached in circle 2019-02-18 16:44:26 -05:00
Brian Mann c250aa2dd6 use the right uuid dep 2019-02-18 16:43:17 -05:00
Brian Mann 21dc1dc037 require the right dep 2019-02-16 16:55:15 -05:00
Zach Bloomquist ef9b8f7b38 Launch browsers by path: --browser /path/to/browser (#3337)
* adding multiple possible binary names for linux

* windows launcher doesn't consider "binary", so don't pass it

* adding test for multiple binary names

* Stronger typing, clearer variable names

* Stronger typing, clearer variable names

* cleanup

* cleanup

* clean up type- why isn't this being linted?

* Add more aliases (#3217)

* launcher changes to use Browser throughout, also clarifying FoundBrowser/Browser distinction

* wip

* wip

* update tests to expect objects

* removing errant debugger calls

* Fixing tests

* desktop-gui: use displayName for display

* ' -> "

* launcher: add definitions for google chrome beta and unstable

* server: fallthrough to using chrome helper

* server: changes for run mode to pick correct version

* desktop-gui: add displayName to fixtures

* server: isolating bug with runmode

* browser was a string all along

* server: re-promisify browser detection

* launcher: remove chrome-beta for now, needs some more tweaking for that to work 100 percent

* launcher: cleaning up types

* launcher: fix type comflict when filtering browsers (#3258)

* launcher: cast Windows foundbrowsers

* launcher: mapSeries -> map

* launcher: clean up launcher, change 1 call in server to match

* launcher: test that browsers contains what we like it to

* whoops

* server: accept path in runmode

* launcher: changes for detectByPath [wip]

* server: update tests to use new errors

* launcher: error message cleanup

* launcher: detectByPath working with CLI client

* launcher: detectByPath tests

* launcher: cli client for detectByPath

* server: update error msg snapshot

* cli: allow passing --browser to open mode

* server: using --browser=/path/ works in run and open mode!!

* launcher: change displayName of custom browsers

* server: find browser with highest version property by default

* launcher: update tests, clean up types

* server: fix tests

* server: fix tests

* cli: update help snapshots

* launcher: tests

* server: wip

* server, launcher: clean up errors

* server: add unit tests for events

* server: change e2e helper to support custom browser strings in stdout

* server: e2e tests for browser by path

* server: if this break that

* server: clean up and fix? tests

* decoffeeate, entypescriptify

* server: fix test

* cli: fix whitespace

* cli: remove external browser notice

* server: detect a browser to use for the e2e launch-by-path test

* server: make stackTraceLinesRe not match all sentences with 'at' in them

* server, launcher: update 'not found at path' error msg

* server: clean up browser switch

* server: customBrowserPath

* server: update snapshots that were affected by the old stackLineRe

* server: update stubs

* server: update BROWSER_NOT_FOUND_BY_PATH to use error objects

* server: backticks in snapshots break snapshots

* server: forgetting to save without formatting will be my downfall

* server: remove comment

* desktop-gui: make custom browsers chosen

* desktop-gui, launcher: update tests
2019-02-16 15:12:17 -05:00