Brian Mann
f12273beec
driver: prevent flake by not waiting thenable promise
2017-09-16 15:05:01 -04:00
Brian Mann
d15bd00758
driver: fixes failing tests
2017-09-16 15:04:50 -04:00
Brian Mann
8b692274e4
driver: cleanup [skip ci]
2017-09-16 14:48:27 -04:00
Brian Mann
6366e80750
driver: rename dom_spec -> visibility_spec
2017-09-16 14:45:17 -04:00
Brian Mann
d90c49cd93
driver: rename action files for consistency
2017-09-16 14:43:07 -04:00
Brian Mann
8e77ed140a
driver: rename action utils to actionability for clarity
2017-09-16 14:39:04 -04:00
Brian Mann
3cc3af3a25
driver: go back to using x/y to indicate target positioning. set value only after knowing desired position
2017-09-16 14:27:40 -04:00
Brian Mann
66c90c6c24
WIP: calculate whether an element is covered using the center, not top left [skip ci]
...
- provide a reason a fixed position element is hidden
- format error messages
- cleanup visibility algorithm when dealing with fixed position
- add tests to ensure new reason element is hidden is displayed
- return topCenter and leftCenter values
2017-09-15 21:19:54 -04:00
Brian Mann
19f7239307
driver: finish refactor, remove state from coordinates, move to src/dom/coordinates, normalize left + top, not x, y
...
- add coordinates spec back in
2017-09-14 15:41:09 -04:00
Brian Mann
d34e0c65a8
driver: don't needlessly set coords
2017-09-14 15:39:48 -04:00
Brian Mann
7386cf261d
driver: don't pass window to waitForActionability, let it figure it out from element
2017-09-14 15:39:22 -04:00
Brian Mann
3c70ac7696
driver: WIP added e2e test for visibility issue (its passing) [skip ci]
2017-09-14 00:29:09 -04:00
Brian Mann
5b5b667e19
driver: WIP cleanup a bit [skip ci]
2017-09-13 23:49:31 -04:00
Brian Mann
f744af253a
driver: fix visibility calculations, take into account CSS transforms, handle fixed position specifically [skip ci]
...
- add more test cases for fixed positioned elements
2017-09-13 23:45:31 -04:00
Brian Mann
0c83844a24
driver: WIP begin refactoring coordinates to be stateless, and to return both fromWindow and fromViewport coordinates
2017-09-13 23:41:54 -04:00
Chris Breiding
557463e90a
driver: use getBoundingClientRect in visibility calculations (wip) [skip ci]
2017-09-13 17:06:25 -04:00
Gleb Bahmutov
ae750c2730
Set enter on event ( #458 )
...
* driver: for type {enter} set key event property
* driver: use setKey to pass standard keyboard event key
* update other special keys to set key property
* driver: add tests for key property on the event object
2017-09-13 12:34:42 -04:00
Brian Mann
df9cd1309c
fixes #642 , typo with chai-jquery descendants chainer
2017-09-13 11:45:57 -04:00
Brian Mann
845667ce8d
driver: rename a bunch of events for consistency
2017-09-10 22:05:03 -04:00
Brian Mann
1a5f0fee9e
driver: comments [skip ci]
2017-09-10 17:19:52 -04:00
Brian Mann
d0e35d0b48
driver: comment out dead code [skip ci]
2017-09-10 17:19:14 -04:00
Brian Mann
1285f464ea
driver: failing and passing test to show outer assertions retry
2017-09-10 17:03:18 -04:00
Brian Mann
25e2b238e9
driver: fix failing tests
2017-09-10 15:57:02 -04:00
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
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
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
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
ee7caf961a
hard deprecate Cypress.Log.command
2017-09-06 17:38:05 -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
dcda45345e
driver: notes about better error messaging [skip ci]
2017-09-01 01:26:15 -04:00
Brian Mann
8645ffe44f
driver: fixes #399 tests around redirections causing cy.contains to be bound to old body
2017-09-01 00:22:38 -04:00
Brian Mann
8e9e2891be
Merge branch 'develop' into driver-refactor-merge
2017-08-31 23:46:05 -04:00