cypress 12.0.2 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/cypress.js CHANGED
@@ -35,6 +35,7 @@ const cypressModuleApi = {
35
35
  }
36
36
 
37
37
  options = util.normalizeModuleOptions(options);
38
+ tmp.setGracefulCleanup();
38
39
  return tmp.fileAsync().then(outputPath => {
39
40
  options.outputPath = outputPath;
40
41
  return run.start(options).then(failedTests => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "12.0.2",
3
+ "version": "12.1.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -118,8 +118,8 @@
118
118
  },
119
119
  "buildInfo": {
120
120
  "commitBranch": "develop",
121
- "commitSha": "f9541aff10efa62ffdd15f34775c2761ba78adf3",
122
- "commitDate": "2022-12-08T15:35:58.000Z",
121
+ "commitSha": "8888cd9e211e608f9bbac81478667b2877dab76e",
122
+ "commitDate": "2022-12-12T20:42:46.000Z",
123
123
  "stable": true
124
124
  },
125
125
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -362,7 +362,7 @@ declare namespace Cypress {
362
362
 
363
363
  /**
364
364
  * Utility functions for ensuring various properties about a subject.
365
- * @see https://on.cypress.io/custom-queries
365
+ * @see https://on.cypress.io/api/custom-queries
366
366
  */
367
367
  ensure: Ensure
368
368
 
@@ -896,21 +896,41 @@ declare namespace Cypress {
896
896
  clear(options?: Partial<ClearOptions>): Chainable<Subject>
897
897
 
898
898
  /**
899
- * Clear a specific browser cookie for the current hostname or for the domain specified.
900
- * Cypress automatically clears all cookies before each test to prevent state from being shared across tests. You shouldn't need to use this command unless you're using it to clear a specific cookie inside a single test.
899
+ * Clear a specific browser cookie for a domain.
900
+ *
901
+ * Cypress automatically clears all cookies _before_ each test to prevent
902
+ * state from being shared across tests when test isolation is enabled.
903
+ * You shouldn't need to use this command unless you're using it to clear
904
+ * a specific cookie inside a single test or test isolation is disabled.
901
905
  *
902
906
  * @see https://on.cypress.io/clearcookie
903
907
  */
904
908
  clearCookie(name: string, options?: CookieOptions): Chainable<null>
905
909
 
906
910
  /**
907
- * Clear all browser cookies for the current hostname or for the domain specified.
908
- * Cypress automatically clears all cookies before each test to prevent state from being shared across tests. You shouldn't need to use this command unless you're using it to clear all cookies or specific cookies inside a single test.
911
+ * Clear browser cookies for a domain.
912
+ *
913
+ * Cypress automatically clears all cookies _before_ each test to prevent
914
+ * state from being shared across tests when test isolation is enabled.
915
+ * You shouldn't need to use this command unless you're using it to clear
916
+ * specific cookies inside a single test or test isolation is disabled.
909
917
  *
910
918
  * @see https://on.cypress.io/clearcookies
911
919
  */
912
920
  clearCookies(options?: CookieOptions): Chainable<null>
913
921
 
922
+ /**
923
+ * Clear all browser cookies.
924
+ *
925
+ * Cypress automatically clears all cookies _before_ each test to prevent
926
+ * state from being shared across tests when test isolation is enabled.
927
+ * You shouldn't need to use this command unless you're using it to clear
928
+ * all cookie inside a single test or test isolation is disabled.
929
+ *
930
+ * @see https://on.cypress.io/clearallcookies
931
+ */
932
+ clearAllCookies(options?: Partial<Loggable & Timeoutable>): Chainable<null>
933
+
914
934
  /**
915
935
  * Get local storage for all origins.
916
936
  *
@@ -921,6 +941,11 @@ declare namespace Cypress {
921
941
  /**
922
942
  * Clear local storage for all origins.
923
943
  *
944
+ * Cypress automatically clears all local storage _before_ each test to
945
+ * prevent state from being shared across tests when test isolation
946
+ * is enabled. You shouldn't need to use this command unless you're using it
947
+ * to clear localStorage inside a single test or test isolation is disabled.
948
+ *
924
949
  * @see https://on.cypress.io/clearalllocalstorage
925
950
  */
926
951
  clearAllLocalStorage(options?: Partial<Loggable>): Chainable<null>
@@ -941,9 +966,11 @@ declare namespace Cypress {
941
966
 
942
967
  /**
943
968
  * Clear data in local storage for the current origin.
944
- * Cypress automatically runs this command before each test to prevent state from being
945
- * shared across tests. You shouldn't need to use this command unless you're using it
946
- * to clear localStorage inside a single test. Yields `localStorage` object.
969
+ *
970
+ * Cypress automatically clears all local storage _before_ each test to
971
+ * prevent state from being shared across tests when test isolation
972
+ * is enabled. You shouldn't need to use this command unless you're using it
973
+ * to clear localStorage inside a single test or test isolation is disabled.
947
974
  *
948
975
  * @see https://on.cypress.io/clearlocalstorage
949
976
  * @param {string} [key] - name of a particular item to remove (optional).
@@ -1395,19 +1422,26 @@ declare namespace Cypress {
1395
1422
  get<S = any>(alias: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<S>
1396
1423
 
1397
1424
  /**
1398
- * Get a browser cookie by its name for the current hostname or for the domain specified.
1425
+ * Get a browser cookie by its name.
1399
1426
  *
1400
1427
  * @see https://on.cypress.io/getcookie
1401
1428
  */
1402
1429
  getCookie(name: string, options?: CookieOptions): Chainable<Cookie | null>
1403
1430
 
1404
1431
  /**
1405
- * Get all of the browser cookies for the current hostname or for the domain specified.
1432
+ * Get browser cookies for a domain.
1406
1433
  *
1407
1434
  * @see https://on.cypress.io/getcookies
1408
1435
  */
1409
1436
  getCookies(options?: CookieOptions): Chainable<Cookie[]>
1410
1437
 
1438
+ /**
1439
+ * Get all browser cookies.
1440
+ *
1441
+ * @see https://on.cypress.io/getallcookies
1442
+ */
1443
+ getAllCookies(options?: Partial<Loggable & Timeoutable>): Chainable<Cookie[]>
1444
+
1411
1445
  /**
1412
1446
  * Navigate back or forward to the previous or next URL in the browser's history.
1413
1447
  *
@@ -1579,7 +1613,7 @@ declare namespace Cypress {
1579
1613
  /**
1580
1614
  * Invoke a command synchronously, without using the command queue.
1581
1615
  *
1582
- * @see https://on.cypress.io/custom-queries
1616
+ * @see https://on.cypress.io/api/custom-queries
1583
1617
  */
1584
1618
  now(name: string, ...args: any[]): Promise<any> | ((subject: any) => any)
1585
1619