Posted 4 March 2024, 1:50 am EST
Hello SpreadJS Suppor team,
I hope this finds you well.
We’ve recently experienced a bug where we were not correctly applying the license key to the ExcelIO package, which lead to the xlsx file being generated but only containing the error message: “You need a valid license key to run SpreadJS Excel IO. Temporary keys are available for evaluation. If you purchased a license, your key is in your purchase confirmation email. Email us.sales@grapecity.com if you need assistance.”
I’ve since repaired the issue and are now looking at creating automated tests that confirm that the license key is correctly assigned and the file contains the content we’re expecting.
But when running the automated tests (through Cypress, if that matters), the downloaded file contains the full content, even when pointed at a deployment in which the license is not applied properly and the error from above is reproducible when accessing the website manually. This happens using both SpreadJS 15 and 16.
Does SpreadJS ignore licensing when it detects Cypress? How can I reproduce the above behaviour automatically? Any guidance would be helpful.
Many thanks.