Commit Graph

11346 Commits

Author SHA1 Message Date
Amir Rustamzadeh f313dd0b84 iterate through specs in parallel (#2154)
- fixes: #2153
- fixes: #1566
- fixes: #1690
- fixes: #2275
- fixes: #2276
2018-08-06 07:24:19 -04:00
richdouglasevans 88379da700 Correct README instruction about build script for dev (#2274)
There is no script `build-run` in `package.json`. The `README`
now reflects the correct script for building for development.
2018-08-06 04:34:09 -04:00
Ben Kucera e46edab964 Fix form submission with type "button" (#2278)
* gets type from button

* remove extra whitespace

* update tests broken by changing dom.html
2018-08-06 04:33:59 -04:00
Chris Breiding 95be7a6443 Bump browserify-preprocessor to 1.1.0 (#2266)
Closes #2254
2018-08-06 03:21:53 -04:00
Chris Breiding 3bc69ec4e6 Implement retries with backoff strategy for API requests (#2151)
Fixes #1590
2018-08-04 18:35:49 -04:00
Chris Breiding 754fccf0b5 Collect IDs and numbers from CI (#2148)
* wip - gather build/job/workflow id/number from ci providers

* add question marks

* remove ciProvider.buildNum() and ciProvider.groupId()

- buildNum is being moved to params
- groupId isn’t used

* fix unit tests

* fix unit tests

* finished implementing all additional provider fields and normalizations

- removed buildNumber and opted to push into params
- move pullRequestId into params
- no param normalization other than camelcase

* fix some specs

* fix unit test

* bump schemas to get around schema violations
2018-08-04 17:27:46 -04:00
Jennifer Shehane e3f5ba7388 bump desktop-gui deps schemas & cypress icons 2018-08-02 10:55:40 -04:00
Jennifer Shehane ac7fb9404d Update get runs route from v2 -> v3 (#2251)
* Update get runs route from 2 -> 3

- bump json-schemas dep
- updates runs.json fixture to match new schema
- fix issue with fixtures’ schema assertions being made incorrectly
- bump fixture to be asserted against run response 2.1.0
- fix any runs tests that needed to be updated due to new runs.json

* ensure runs list works when browserName and browserVersion null

* update test for route from v2 to v3
2018-08-02 08:09:50 -04:00
Chris Breiding b826198590 Improve Jenkins detection (#2167)
* expand jenkins ci detection

* remove hudson detection and broaden jenkins detection to include hudson
2018-08-01 00:47:29 -04:00
Brian Mann 935d6a1371 ensure that SVG elements can be clicked and focused correctly (#2246)
fixes #2245
2018-07-31 13:21:25 -04:00
Brian Mann 54c1318253 update deploy notes 2018-07-30 23:42:45 -04:00
Brian Mann f6fdd390de release 3.0.3 [skip ci] v3.0.3 2018-07-30 17:56:44 -04:00
Brian Mann 8e26acb025 rerun in CI 2018-07-30 11:16:35 -04:00
Brian Mann 61ec044acb temporarily revert collecting PR + default branch due to API changes not ready 2018-07-30 08:08:42 -04:00
Brian Mann dd56faf97a polyfill focus events when window out of focus (#2211)
* WIP: handle force focusing to polyfill the events the browser misses when window is out of focus

* remove .only

* fix undefined ref

* fix more refs

* fix errors

* handle edge cases for blurring/focusing/clicking the body or window

- allow body to have .focus() or .blur() called on it
- clicking the body will now change the activeElement
- calling .focus() or .blur() on window will not change the
activeElement or fire blur events

- fixes #2234
- fixes #2235
- fixes #2236

* increase size of iframe because generic loads larger now

* restore generic fixture, create new one for active element testing

* ugh, merge conflicts weren't saved
2018-07-30 06:50:23 -04:00
Ben Kucera 4954ef2c4d fix extra blurs on email/number inputs (#2228)
<!--
Thanks for contributing!

Please explain what changes were made and also
reference any issues that were fixed with #[ISSUE]
-->
fix #2210
2018-07-30 06:00:30 -04:00
Jennifer Shehane 27e1ed7dcf only include --disable-blink-features=RootLayerScrolling flag in chrome v66 and 67 (#2226)
* only include `--disable-blink-features=RootLayerScrolling` flag in chrome v66 and 67

* adds test and proper implementation for disabling root layer scrolling on in chrome 66 and 67
2018-07-30 01:23:29 -04:00
Jennifer Shehane ce3ab55f72 bump dep mocha-junit-reporter from ^1.13.0 to 1.17.0 (#2224)
- address #2221
- fixes #1357
- fixes #1348

- [x] update test to test `testCaseSwitchClassnameAndName` reporter option  https://github.com/cypress-io/cypress/blob/issue-2221/packages/server/test/e2e/reporters_spec.coffee#L38
2018-07-30 01:23:06 -04:00
Gleb Bahmutov 0a4740ad16 add CircleCI develop branch badge 2018-07-27 09:41:09 +02:00
Ben Kucera 68be5817b2 cy.type fixes (#2202)
* add test for non-text type attribute, designmode

* call native methods, deprecate dom.isType
2018-07-24 00:09:31 -04:00
Chris Breiding bf70c90f27 Fix overzealous globbing (#2185)
* don’t set new project if run mode

* only glob for spec file up to 3 levels deep

* add more debug logs

* add e2e test for spec globbing

* fixes failing tests, add unit test around not setting isNewProject

* downgrade back to 0.2.0
2018-07-23 14:27:04 -04:00
Jennifer Shehane 3dc4ff9fd1 example: Add instructions for updating the example app [skip ci] 2018-07-23 12:10:04 -04:00
Brian Mann f25ea5fea7 specify clearly the browser used for driver tests 2018-07-23 11:52:40 -04:00
Brian Mann f5248dee89 focus webview on navigation when headless (#2191)
fixes #2190
2018-07-23 10:54:23 -04:00
Gleb Bahmutov 7308e6eecc Fix launcher transpile (#2194)
* updated examples specs

* fix version of bluebird types in launcher
2018-07-23 12:22:56 +02:00
Gleb Bahmutov a5f2a0f338 schema: update videoCompression to allow boolean, close #2140 (#2142) 2018-07-23 06:12:04 -04:00
Gleb Bahmutov ca20e74486 fix dtslint file name rule (#2192) 2018-07-23 11:32:37 +02:00
Ben Kucera 9f28aea5dc Fix issues with cy.type (#2016)
this grew to a large PR fixing many cy.type issues.

fix #365
fix #420
fix #586 
fix #593 
fix #596 
fix #610 
fix #651
fix #940
fix #1002 
fix #1108
fix #1171
fix #1209 
fix #1234 
fix #1366
fix #1381 
fix #1684 
fix #1686
fix #1926 
fix #2056
fix #2096 
fix #2110 
fix #2173
fix #2187
2018-07-23 04:43:16 -04:00
Jennifer Shehane 5231e79c62 redirect to docs/recipes if needed [skip ci]
- sync with other templates
2018-07-13 10:24:41 -04:00
Jennifer Shehane 7ecb6431dd sync with other templates wording [skip ci] 2018-07-13 10:24:10 -04:00
Jennifer Shehane fd72bca7cb Forward to gitter for questions
- forward to docs/recipes for new documentation
2018-07-13 10:22:48 -04:00
Jennifer Shehane cb3f008ebf Suggest they open issue in docs/recipes for new documentation [skip ci]
- Suggest they ask questions in gitter
2018-07-13 10:21:53 -04:00
Gleb Bahmutov 7a2c21144f add missing TypeScript jsdocs for types for issue 2009 (#2137)
* doc second cy.find type

* document type for cy.request

* document Cypress.env command

* doc type for Cypress.log

* doc types for uncheck

* add type docs for cy.spy

* document spies and stubs types

* add space to align jsdoc stars

* types: show to correctly pass request options, close #2093

* cast just the http method property

* types for spy withArgs and as

* doc more types for overrides

* type for spread

* type for overriden then

* types for cy.trigger overrides

* rest of types of overriden methods, close #2009
2018-07-12 18:42:50 -04:00
Chris Breiding a97d9be210 Fix screenshot paths differing between interactive and run modes (#2103)
* refactor desktop-gui spec path handling

- differentiate folders vs spec files
- simplify specs store, remove mutations
- fix spec changing via browser url
- normalize paths for windows on server

* move windows paths logic back to desktop-gui

using any method from node’s path util converts / back to \ on windows, so trying to normalize the paths to use / is futile. instead, properly split and compare paths in the desktop gui as needed
2018-07-12 18:15:07 -04:00
Chris Breiding 9291eba1a1 Fallback to env variables for git info and include PR id and default branch (#2089)
* make it alphabetical

* fallback to env variables for git info

* fix git info implementation / handle unhandled provider

* fix unit test

* update json schemas with PR number and default branch

* parse Circle url to get PR number

* test getCirclePrNumber

* remove only

* pullRequestId is a string

* warn on commit if there are tests with .only

* bump json-schemas to 5.10.0
2018-07-12 18:11:18 -04:00
Jennifer Shehane 0f9abeab80 update kitchen-sink example to 1.0.2 release (#2063) 2018-07-12 17:49:34 -04:00
Brian Mann 2689ff8416 add more debug logs (#2109) 2018-07-06 17:19:20 -04:00
Brian Mann 7ac3b85577 enable disabling chromeWebSecurity in chrome 67 (#2077)
fixes #1951 
fixes #2001
2018-07-01 02:58:42 -04:00
Jennifer Shehane 03c9069624 Issue 2060 (#2061)
* display name of browser within runs list

* remove .only
2018-06-30 20:44:36 -04:00
Jennifer Shehane c5af554dca bump deps for security warnings (#2067)
- removes security warning during npm audit
- close #1701
2018-06-30 04:48:03 -04:00
Brian Mann 2f90edfb13 release 3.0.2 [skip ci] v3.0.2 2018-06-29 05:08:37 -04:00
Brian Mann 58f3453b35 remove unused file causing binary build failures 2018-06-29 00:12:59 -04:00
Chris Breiding 7f1a69f20e Add 'after:screenshot' plugin event (#2058)
- Fixes #2039
- Fixes #2040
2018-06-28 23:11:43 -04:00
Ben Kucera ddec7db17a fix error typo (#2057) 2018-06-28 11:08:44 -04:00
Brian Mann dc28e87fb8 add support for handling event streams / server sent events / SSE (#2054)
* WIP: fixing SSE

* adds tests and error handling for event streams

* fixes failing tests due to request dep upgrade

* whoops, make sure e2e tests finish. add snapshot
2018-06-28 06:22:38 -04:00
Brian Mann a9d08cfebe security stripping oversight (#2031)
fixes #2030
2018-06-26 18:36:02 -04:00
Gleb Bahmutov ee3eb4a2dd add cy.stub type for window alert and confirm (#2008)
* add cy.stub type for window alert and confirm

* jsdoc for cy.contains

* add jsdoc for viewport width and height

* jsdoc for prev command

* add jsdoc for cy.wait

* add jsdoc for clearLocalStorage

* jsdoc for wrap

* add jsdoc for screenshot with filename

* add jsdoc for clock

* add jsdoc example to cy.its

* complete jsdoc for siblings

* jsdoc for route overrides
2018-06-25 16:42:51 -07:00
Zeus 3cbc0b9c67 Update <head> element regex to avoid testing positive on <header> elements (#2021)
* Update <head> element regex to avoid testing positive on <header> elements

* Add basic rewriter unit tests

* Cleanup excess whitespace in spec

* add integration test around not injecting into <header> elements when <head> is not present

* remove unit tests since they are already covered in integration tests
2018-06-25 13:16:58 -07:00
Chris Breiding 2ca10ef2e1 state.json changes/improvements (#2020)
- Fixes #2013
- Fixes #1912
- Fixes #1905
- Fixes #1890
2018-06-25 13:09:57 -07:00
Roman Hotsiy 1137840bfe driver: use fromViewport vs fromWindow coords in actionability check (fixes #1475) (#1478)
* driver: use fromViewport vs fromWindow coords in actionability check (fixes #1475)

* Write test that ensure entire page does not scroll when action on sticky el

- with old code - there were 36 elements scrolled, with new code only 2.

* target only sticky elements in scrollable check

* fix comment and add link to the PR
2018-06-25 11:45:00 -07:00