kind-minister-59159
09/10/2021, 6:53 PMthankful-lunch-80439
09/10/2021, 6:56 PMCypress.Commands.add
to have them in the cy obj? @kind-minister-59159kind-minister-59159
09/10/2021, 6:59 PMthankful-lunch-80439
09/10/2021, 7:10 PMfancy-airplane-60156
09/13/2021, 12:11 PMimportant-river-75795
09/13/2021, 1:40 PMfuture-gold-77198
09/13/2021, 9:19 PMfancy-airplane-60156
09/14/2021, 4:53 AMthankful-lunch-80439
09/14/2021, 3:54 PMCypress.LocalStorage.clear
? For example, I want a certain local storage item to persist through the tests. How can I do that?future-gold-77198
09/14/2021, 4:09 PM(Cypress as any).LocalStorage.clear = (keys, ls, rs) => {};
thankful-lunch-80439
09/14/2021, 7:30 PMthankful-lunch-80439
09/14/2021, 7:30 PMthankful-lunch-80439
09/14/2021, 7:31 PMthankful-lunch-80439
09/14/2021, 7:31 PMfuture-gold-77198
09/14/2021, 7:45 PMconst clear = Cypress.LocalStorage.clear
Cypress.LocalStorage.clear = function (keys, ls, rs) {
// Go through all keys and Identify which key to not clear in the condition
if (keys) {
return clear.apply(this, arguments)
}
}
thankful-lunch-80439
09/14/2021, 8:13 PMfuture-gold-77198
09/14/2021, 8:22 PMquick-gpu-68223
09/14/2021, 8:37 PMquick-gpu-68223
09/14/2021, 8:38 PMquick-gpu-68223
09/14/2021, 8:38 PMquick-gpu-68223
09/14/2021, 8:40 PMquick-gpu-68223
09/14/2021, 8:59 PMfancy-airplane-60156
09/15/2021, 9:48 AMfancy-airplane-60156
09/15/2021, 9:49 AMfancy-airplane-60156
09/15/2021, 11:58 AMgray-kilobyte-89541
09/15/2021, 12:18 PMfancy-airplane-60156
09/15/2021, 12:33 PMfancy-airplane-60156
09/15/2021, 12:35 PMfancy-airplane-60156
09/15/2021, 12:35 PMfancy-airplane-60156
09/15/2021, 12:39 PM