Commit Graph

11120 Commits

Author SHA1 Message Date
Brian Mann c56e35c818 server, driver: fixes #1288, handle basic auth at the network level, attach authorization headers to requests matching remote origin (#1290)
* server, driver: fixes #1288, handle basic auth at the network level, attach authorization headers to requests matching remote origin

* server, driver: fixes failing tests

* driver: fix tests, move around order of ops

* driver: try cypress promise

* server, driver: increase timeouts, don't disable background networking
2018-02-10 21:44:28 -05:00
Brian Mann d6c944ef0e scripts: set absolute path to spec 2018-02-08 13:24:41 -05:00
Brian Mann 31f22c24b2 Issue 1155 (#1272)
* server: move hosts out of CLI args, keep as config only

* server, desktop-gui: fixes #1155 accept blacklistHosts from config CLI, display array on desktop gui settings

* server: pass args.config since its no longer flattened

* server: WIP trying to simplify config management

* server: fixes failing tests and circular refs

* server: fix failing tests with config hosts updates
2018-02-07 16:56:40 -05:00
Brian Mann 001a310b04 Issue 1159 (#1259)
* server: pass --cwd from CLI to use when resolving relative paths for various options

- remove unnecessary cwd manipulation in scripts/start

* server: fixes #1159, specs are normalized into an array resolved against cwd

- projectPath is now normalized against cwd as well

* server: move hosts out of CLI args, keep as config only

* server: convert spec array to string on module API

* cli: must ref root package directly

* server: fixes busted specs due to cherry pick

* server: temporary fix for specs being normalized into an array

* server: move around spec flattening earlier

* server: pass absolute path for specs

* server: revert flattening hosts into config temporarily

* server: add correct relative + absolute path to spec

* driver: normalize spec path against project

* driver: skip flaky test for now [skip ci]
2018-02-07 12:11:24 -05:00
Jennifer Shehane 8e205410a9 clean up some of contributing guide to not be as noisy [skip ci] 2018-02-06 15:49:40 -05:00
Brian Mann d520a5906f release 1.4.2 [skip ci] v1.4.2 2018-02-04 21:06:54 -05:00
Brian Mann e08778dd89 Issue 1175 (#1257)
* server: fixes #802 and fixes #380 and fixes #402 and fixes #493 and fixes #1161

- use the public suffix when parsing tld’s so that document.domain is
set correctly

* driver: move location spec back into cypress tests

* server, driver: fixes: #600 and fixes #1175 use public suffix for parsing tld, handle multiple different subdomains on cy.visit
2018-02-04 17:28:33 -05:00
Brian Mann aa667d5319 server: fixes #802 and fixes #380 and fixes #402 and fixes #493 and fixes #1161 (#1256)
- use the public suffix when parsing tld’s so that document.domain is
set correctly
2018-02-04 17:28:13 -05:00
Peter Hrynkow 893406f121 Allow .localhost tld to be parsed correctly (#1216)
* closes #451 - allow .localhost tld to be parsed correctly

* server: add unit + e2e tests for localhost, simplify regexp
2018-02-04 15:27:51 -05:00
Nicholas Boll 88f534bf08 fix: Incorrect type for 'then' returning a wrapped 'undefined' (#1220) 2018-02-04 14:45:42 -05:00
Randall Kent 84f73535c3 Add OpenCollective 2018-01-29 21:51:01 -05:00
Jacob Rothstein d462e0b83b return NODE_ENV to previous state after konfig() (#1224) close #1223
if the key previously did not exist, delete it
2018-01-25 09:25:05 -05:00
Oliver Forral 80456ea8dd Fixed misspellings of Cypres to Cypress in comments (#1198) 2018-01-17 16:34:24 -05:00
Gleb Bahmutov 11f1d1b6e3 Banner for server e2e tests (#1199)
* server: use terminal-banner in e2e tests

* add mocha-banner to integration tests

* different banner between e2e specs
2018-01-17 12:49:18 -05:00
Gleb Bahmutov 99302267df Banner to separate test output (#1190)
* cli: add mocha-banner so we can see what each test outputs

* linting
2018-01-16 13:22:00 -05:00
Nicholas Boll ae8b147e28 feat: Add TypeScript support for Cypress action events (#1187)
* feat: Add support for Cypress action events

* fix: Fixed documentation URL for actions

* fix dtslint test failures
2018-01-16 10:59:00 -05:00
Jennifer Shehane 2c122b0af2 Move tip about reproducible repo to comments [skip ci] 2018-01-10 09:31:20 -05:00
Nicholas Boll a51ea1f783 doc: should/and chainer autocomplete (#1132)
* fix: within type definition

* doc: should/and chainer autocomplete

* chore: Updated example documentation to match #1117
2018-01-09 17:05:55 -05:00
Sam a7d0cff93f Fixing incorrect type for supportFile (#1167) 2018-01-09 16:59:38 -05:00
Theoklitos Bampouris 50a67431d7 Upgrade debug package to version 2.6.9 or greater (#1174)
* Upgrade debug package to version 2.6.9 or greater

* Set debug version explicitly to 3.1.0
2018-01-09 16:59:06 -05:00
Gleb Bahmutov 83af54f39d add advice to issue template (#1172) 2018-01-09 16:58:36 -05:00
Gleb Bahmutov 938190aaa5 linted example spec and include example plugins folder 2018-01-08 13:24:53 -05:00
Brian Mann edab5a452b driver: ufff move back e2e setup prior to all reporter tests 2018-01-07 11:27:01 -05:00
Brian Mann 81294562e3 server: fix snapshots, and don't print warnings when socket has been ended 2018-01-06 18:15:10 -05:00
Brian Mann d42be106ef server: derp .only 2018-01-06 17:36:04 -05:00
Brian Mann 0e539c0232 server: enable long stack traces, nest mocha awesome setup 2018-01-06 15:45:37 -05:00
Brian Mann f83c39dd3c Issue 551 1063 1141 (#1158)
* server: fixes #1141 use runner.failures and increment them ourselves

* server: opt, install to server node_modules and then copy into e2e

* server: fixes #1063 and #551, ensure hooks cause exit codes + mochawesome resports are generated

* server: reduce unnecessary async ops
2018-01-06 13:10:40 -05:00
Brian Mann 93317d5e1b server: fixes #1142 polyfill titlePath for reporters using peer dependencies of mocha >= 4 2018-01-05 17:40:05 -05:00
Brian Mann 3fce3b5dd8 server: use niv to handle multiple versions of node modules 2018-01-04 15:02:37 -05:00
Adam Binks 0cb90927ce Fix typos in CLI errors.js (#1138)
* Fixed typos in errors.js

* Revert "Fixed typos in errors.js"

This reverts commit 99085af24c.

* Fixed typos in errors.js

* Fixed typo in errors spec snapshot

Hopefully tests should be passing now

* Fixed typo in verify spec snapshot
2018-01-02 13:23:35 -05:00
Brian Mann 5e0e5aab8d release 1.4.1 [skip ci] v1.4.1 2017-12-26 16:11:52 -05:00
Brian Mann 17d1f85ec8 cli: bump xvfb 2017-12-25 00:07:36 -05:00
Brian Mann 5d2d8278eb root: utilize CLI, don't use npm start, add cypress:run + cypress:open npm tasks for clarity 2017-12-24 23:07:06 -05:00
Brian Mann 3dafede470 server: fixes #977, capture stdout in windows (#1129)
* server: fixes #977, capture stdout in windows

* driver: skip flaky tests for now

* root: fix breaking eslint due to 4.14.0

* cli: bump xvfb to make node4 happy

* cli: bump xvfb fix context
2017-12-24 21:49:00 -05:00
Brian Mann d54156e2f2 cli, fixes #921, #1113, #1126, #1127, make DEBUG logs work, show error when xvfb exits with status code 1, force tty in linux, handle colors in windows, enable logging cypress:xvfb stderr
* cli: fixes #838 start cypress in dev by routing through the CLI

- matches how we run in production better to keep parity and consistency

* cli: add coerceFalse for clarity

* cli: add global flag, update to work with windows

* server: bring into parity with root scripts

* cli: just execute start script directly to work with windows

* cli: if colors are supported then force them via env vars

- this fixes windows not displaying colors from electron because by
default isTTY is false (due to electron)

* cli: fixes #921 don't ignore stderr, inherit stdio on everything except when linux + xvfb

- filter out stderr messages coming from Xlib or libudev (from xvfb)

* cli, server: force stderr tty so that normalize tty behavior when piping

* server: drop in supports color so debug outputs more colors!

* server: remove empty line

* root: refer to cypress not monorepo

* cli: make util.supportsColor return boolean

* cl: add tests around spawn behavior with forcing colors, tty, and stdio configuration

* cli: handle xvfb onStderrData callback to output debug information

* cli: handle non zero exit code error from xvfb with special message
2017-12-24 19:03:57 -05:00
Gleb Bahmutov aa0a41caf5 Doc ts better 1117 (#1122)
* ts: document common assertions, cy and Cypress

* document more common methods

* more comments for #1117

* todomvc examplehas good intellisense, close #1117
2017-12-24 18:25:06 -05:00
Brian Mann bc6d8f0a4d cli: fixes #838 start cypress in dev by routing through the CLI (#1106)
* cli: fixes #838 start cypress in dev by routing through the CLI

- matches how we run in production better to keep parity and consistency

* cli: add coerceFalse for clarity

* cli: add global flag, update to work with windows

* server: bring into parity with root scripts

* cli: just execute start script directly to work with windows

* cli, server: fixes failing tests
2017-12-24 15:05:29 -05:00
Gleb Bahmutov ad0357dce0 cli: upgrade debug and extract-zip, close #1103 (#1104) 2017-12-21 20:17:29 -05:00
Thomas Broadley d503ce2004 docs: fix typo (#1116) [skip ci] 2017-12-21 11:01:07 -05:00
Gleb Bahmutov d865439367 add cypress.schema.json close #1109 (#1112) 2017-12-20 21:02:01 -05:00
Jennifer Shehane 24fd6a76eb Fix broken link to Roadmap [skip ci] 2017-12-20 10:15:43 -05:00
Brian Mann fa584e6045 release 1.4.0 [skip ci] v1.4.0 2017-12-19 15:49:31 -05:00
Jennifer Shehane 2435992328 example: bump kitchen-sink to 0.8.3 (cy.exec w/ platform updates) (#1095) 2017-12-19 13:40:55 -05:00
Brian Mann 88c367ff13 server: fixes #1093, ensure github login works (#1094)
* server: fixes #1093, ensure github login works

- add more comprehensive tests around windows and events
- test that github callbacks work as expected

* server: fixes failing tests

* server: fixes failing tests, more resets
2017-12-19 12:54:35 -05:00
Marcelo Emanoel Bezerra Diniz f0d67572ea Add a local filter for specs by displayName (#1033)
* Add a local search for specs by displayName

* Fix filter spec tests

* fix update banner spec

* styling updates to searchbar

- make background of search bar grey
- fix issue where outline was being cut off
- more visually vertically center the search icon
- update style of ‘run all tests’ button to look like btn instead of
link
- fix styles of searchbar so that it is not fixed at top (removes needs
to click({force: true})
- cleaned up a few cy chains in tests.

* Update search area to be less prominent.

- Change ‘search here’ to ‘search…’
- Made search bar smaller
- made search bar same bg color as header
- underline on focus
2017-12-19 12:44:40 -05:00
Nicholas Boll 233ddf8d7b fix: Unwrap subject returned by cy.then (#1085)
* fix: Unwrap subject returned by cy.then

* update to use Cypress.Promise
2017-12-19 11:15:05 -05:00
Brian Mann 4453fcf920 release 1.3.0 [skip ci] v1.3.0 2017-12-19 10:52:53 -05:00
Chris Breiding 874ae86bec Fix selector playground styles in electron (#1088)
* runner: append selector playground styles instead of using a link tag

* runner: rename selector helper to selector playground

* runner: bump react-tooltip version
2017-12-19 10:41:11 -05:00
Brian Mann 150edb614a rerun in ci 2017-12-17 18:26:25 -05:00
Brian Mann 191dbfb354 server: fixes #691, add event for exposing browser launch args (#1078)
* server: fixes #691, add event for exposing browser launch args

- enable special handling of ‘—load-extension’
- add e2e / integration / unit tests
- handle both chrome + electron cases

* server: iterate on failing tests, don't strip electron options else we lose valuable properties

- add better debugging

* server: fix failing tests, browsers needed

* server: send in a complete browser object for 'before:browser:launch'

- useful for doing conditional things with version and/or path
2017-12-17 16:57:26 -05:00