<@715580668045951047> i started to use https://g...
# help
n
@gray-kilobyte-89541 i started to use https://github.com/bahmutov/cypress-v10-preserve-cookie and i see something strange which may be issue with me but check it out, i have a custom command that does this:
Copy code
cy.getCookies({ log: true }).then(cookies => {
                const cookieNames = cookies.map(c => c.name);

                // 'cookie1','cookie2','cookie3','cookie4'
                console.log(cookieNames.map(s => `'${s}'`).join(','));
                
                //this doesnt work
                cy.preserveCookieOnce(cookieNames.map(s => `'${s}'`).join(','));

                the error i get is
                Command:  preserveCookieOnce
                index.0fb50328.js:99244 Error:    
                Error: Expected the cookie name to preserve
                    at eval (webpack:///./node_modules/cypress-v10-preserve-cookie/src/index.js:10:0)


                //this does work with no issues
                cy.preserveCookieOnce(
                    'cookie1',
                    'cookie2',
                    'cookie3',
                    'cookie4'
                );