Merge branch 'develop' into release/13.0.0

This commit is contained in:
Ryan Manuel
2023-08-25 09:02:04 -05:00
committed by GitHub
36 changed files with 1247 additions and 749 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
// Cypress adds chai expect and assert to global
declare const expect: Chai.ExpectStatic
declare const assert: Chai.AssertStatic
declare var expect: Chai.ExpectStatic
declare var assert: Chai.AssertStatic
+2 -2
View File
@@ -7,7 +7,7 @@ cy.get('button').click()
cy.get('.result').contains('Expected text')
```
*/
declare const cy: Cypress.cy & CyEventEmitter
declare var cy: Cypress.cy & CyEventEmitter
/**
* Global variable `Cypress` holds common utilities and constants.
@@ -19,4 +19,4 @@ Cypress.version // => "1.4.0"
Cypress._ // => Lodash _
```
*/
declare const Cypress: Cypress.Cypress & CyEventEmitter
declare var Cypress: Cypress.Cypress & CyEventEmitter
+17
View File
@@ -1201,3 +1201,20 @@ namespace CypressRequireTests {
Cypress.require({}) // $ExpectError
Cypress.require(123) // $ExpectError
}
namespace CypressGlobalsTests {
Cypress
cy
expect
assert
window.Cypress
window.cy
window.expect
window.assert
globalThis.Cypress
globalThis.cy
globalThis.expect
globalThis.assert
}