Commit Graph

10514 Commits

Author SHA1 Message Date
Brian Mann 2c000a7d8a driver: let cy.contains accept window + document as well 2017-09-10 15:44:35 -04:00
Brian Mann 2d4e92bc7e driver: WIP see if any of the tests fail 2017-09-10 14:04:44 -04:00
Brian Mann d8a74e160f driver: make cy.contains() require an optional element as subject 2017-09-10 13:46:53 -04:00
Gleb Bahmutov aa17d06e05 module api: normalize env option, close 437 (#441) 2017-09-09 09:19:52 -04:00
Brian Mann fb4492b249 Merge pull request #445 from cypress-io/custom-command-interface
Custom command interface
2017-09-09 00:26:30 -04:00
Brian Mann 08326a2d93 driver: fix viewport state bugs by preserving currentViewport between re-runs
-crazy clutch e2e test on recreating state bugs O_O
2017-09-09 00:24:54 -04:00
Brian Mann 0e07ed7d8c server: fix e2e test, remove excessive stack traces 2017-09-08 23:27:14 -04:00
Brian Mann 68484d1c67 driver: better switch case 2017-09-08 23:04:03 -04:00
Brian Mann 70404fb571 driver: update logic for calculating stale elements, handle stale docs better
- add zee tests!
2017-09-08 23:03:54 -04:00
Brian Mann bf8b834cb9 driver: implemented custom command interface validations, extracted all utility functions, enable iframe elements to be subjects
- lots new improved errors on subject validations
- cleanup lots of specs
- enable cy.focus and cy.blur to work on windows
- refactor how subjects are pushed into non parent elements
- simplify ‘types’ of commands
- locked down lots of commands to ensure you cannot pass window or
document to them (when they aren’t supported)
- cleanup context
- remove excessive ‘ensure*’
- add ensures for each command subject validation
2017-09-08 16:17:30 -04:00
Gleb Bahmutov 1f8fec210d eslint ignore snapshots folder should be in the root, close #442 (#444) 2017-09-08 15:16:15 -04:00
Brian Mann 3b3712c087 driver: extract focusable into $dom.isFocusable 2017-09-07 21:51:24 -04:00
Brian Mann 51404b61d3 driver: ref fixes 2017-09-07 15:17:29 -04:00
Brian Mann 62879d0317 driver: remove dead code 2017-09-07 14:56:55 -04:00
Brian Mann 442c75aecc driver: publicly attach more things to Cypress instances 2017-09-07 14:56:45 -04:00
Brian Mann aeb34ad7bd driver: refactor dom methods, extract from utils, cleanup names 2017-09-07 14:54:20 -04:00
Brian Mann a73f6313c6 driver: remove dead code and unused required modules 2017-09-07 14:25:05 -04:00
Brian Mann 7ff95d33c7 driver: enable trigger to work on document and window, update trigger to fire event on descendants
- prevent log from trying to work with $el when they are not elements
2017-09-07 10:46:20 -04:00
Brian Mann e024e71de3 driver: remove cancellation handling 2017-09-07 00:22:58 -04:00
Brian Mann 6b2dc1897f driver: agents should use Returned not Yielded in console props 2017-09-07 00:22:49 -04:00
Brian Mann ef1aa050f6 driver: note the flaky test [skip ci] 2017-09-06 20:52:03 -04:00
Brian Mann c08e050f85 driver: cleanup debugger [skip ci] 2017-09-06 20:37:54 -04:00
Brian Mann 1a7324ce0d driver: get Cypress.Commands.overwrite working again, update tests, tweak error messages 2017-09-06 20:25:52 -04:00
Brian Mann d94258ac2d Merge pull request #436 from cypress-io/issue-622
hard deprecate Cypress.Log.command
2017-09-06 19:25:35 -04:00
Brian Mann ee7caf961a hard deprecate Cypress.Log.command 2017-09-06 17:38:05 -04:00
Jennifer Shehane 0c0b947f2f Reference outside docs repository + 👕 emoji 2017-09-06 16:41:51 -04:00
Brian Mann 8255d37168 cli: add some delay to give listr some padding to update stdout 2017-09-06 16:39:01 -04:00
Brian Mann 7683beeda4 driver: log alert + confirm, give users events to tap into both, and allow controlling the confirmation 2017-09-06 15:28:14 -04:00
Brian Mann 54139137e6 driver: remove rogue debugger 2017-09-06 14:33:41 -04:00
Brian Mann 1974a4599e driver: remove language about custom command 2017-09-06 14:33:30 -04:00
Brian Mann 8e7c715185 Merge pull request #428 from cypress-io/desktop/cy-open-link
desktop: changes to 'update available' modal
2017-09-06 13:53:26 -04:00
Brian Mann d7438ebd97 Merge pull request #426 from cypress-io/cli-version-command-413
Cli version command 413
2017-09-06 12:17:52 -04:00
Brian Mann 00759494c9 Merge pull request #435 from cypress-io/issue-424
issue 424
2017-09-06 11:41:31 -04:00
Brian Mann a82cac7c70 server: improve error message, add blank cypress.json files for e2e fixtures 2017-09-06 05:38:56 -04:00
Brian Mann c90d159315 server: error when running from the CLI without a cypress project
- never seed the kitchen sink from the command line
- error if cypress.json was not found
2017-09-06 05:14:57 -04:00
Brian Mann a7b1dc08f5 Merge branch 'develop' into desktop/cy-open-link 2017-09-06 02:55:07 -04:00
Brian Mann 4fcb1685c8 cli: test-debug command ftw 2017-09-06 02:54:14 -04:00
Brian Mann a79431cd6c cli: improve version experience
-alias versions to -v and --version
-make exec/versions helper
-capture logs via logger
-simplify tests
2017-09-06 02:54:02 -04:00
Brian Mann 8a2f78f0dc Merge branch 'develop' into cli-version-command-413
# Conflicts:
#	docs/source/guides/guides/command-line.md
2017-09-06 01:37:04 -04:00
Brian Mann a74429536a docs: remove docs from monorepo -> move to cypress-documentation 2017-09-06 01:25:14 -04:00
Brian Mann 99250de71d docs: remove docs CI tasks from circle 2017-09-06 01:22:58 -04:00
Brian Mann c7cb0ae0dd Merge pull request #429 from cypress-io/issue-410
issue #410
2017-09-05 17:32:22 -04:00
Brian Mann e8ba8713d7 server: update snapshots due to removal of 'Added this project' 2017-09-05 17:14:50 -04:00
Gleb Bahmutov 8f928e5d91 cli: remove build/readme from git repo, close #420 (#433) 2017-09-05 14:52:25 -04:00
Gleb Bahmutov 7d65854fd4 docs: environment and better id message (#432)
* docs: environment and better id message

* docs: try avoiding <h1> tag in markdown

* cli: only print a warning on invalid id
2017-09-05 14:15:45 -04:00
Chris Breiding 491bdeba87 Merge pull request #431 from cypress-io/issue-430-project-state
Fix per-project state.json
2017-09-05 14:15:37 -04:00
Chris Breiding cbbbee1c03 server: fix per-project state.json. Fixes #430 2017-09-05 13:38:49 -04:00
Gleb Bahmutov fb06f1ba93 cli: show error on unknown command, close #414 2017-09-05 12:58:23 -04:00
Brian Mann 35e703ce57 server: fixes #410 don't add projects to cache when running from the CLI 2017-09-05 12:56:28 -04:00
Brian Mann a5d8834bf5 server: remove unused circle.yml [skip ci] 2017-09-05 12:49:53 -04:00