File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11import { commands } from './'
22
33commands . forEach ( ( { name, command} ) => {
4- Cypress . Commands . add ( name , command . bind ( null , cy ) )
4+ Cypress . Commands . add ( name , command )
55} )
66
7- /* global Cypress, cy */
7+ /* global Cypress */
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const defaults = {
88const commands = Object . keys ( queries ) . map ( queryName => {
99 return {
1010 name : queryName ,
11- command : ( cy , ...args ) => {
11+ command : ( ...args ) => {
1212 const lastArg = args [ args . length - 1 ]
1313 const waitOptions = ( typeof lastArg === 'object' )
1414 ? Object . assign ( { } , defaults , lastArg )
@@ -67,4 +67,4 @@ const commands = Object.keys(queries).map(queryName => {
6767export { commands }
6868
6969/* eslint no-new-func:0 */
70- /* globals Cypress */
70+ /* globals Cypress, cy */
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function getFirstElement(jqueryOrElement) {
66}
77
88function getContainer ( container ) {
9- const withinContainer = Cypress . cy . state ( 'withinSubject' )
9+ const withinContainer = cy . state ( 'withinSubject' )
1010 if ( withinContainer ) {
1111 return getFirstElement ( withinContainer )
1212 }
@@ -18,4 +18,4 @@ export {
1818 getContainer ,
1919}
2020
21- /* globals Cypress */
21+ /* globals Cypress, cy */
You can’t perform that action at this time.
0 commit comments