cypress-plugin-tab icon indicating copy to clipboard operation
cypress-plugin-tab copied to clipboard

Update plugin to be compatible with Cypress 10

Open admah opened this issue 2 years ago • 6 comments

Hello 👋 I'm writing on behalf of the Cypress DX team. We wanted to notify you that some changes may need to be made to this plugin to ensure that it works in Cypress 10.

For more information, here is our official plugin update guide.

admah avatar May 26 '22 15:05 admah

want to mention that since updating cypress to v10.3.0, i'm getting TS2339: Property 'tab' does not exist on type 'Chainable<JQuery<HTMLElement>>'. errors. likely related to this. thanks for your work on this plugin!!

DrewMcArthur avatar Jul 15 '22 15:07 DrewMcArthur

@kuceb No updates since May on this issue? Is this project considered dead?

sven5 avatar Sep 14 '22 08:09 sven5

Making all these plugins and then failing to do basic maintenance leaves a bad taste.

I've had to use a fork of every plugin so far as no one is maintaining things or merging PRs.

mryellow avatar Sep 29 '22 02:09 mryellow

The latest merged PR should fix the TS error (or at least make it possible to include the types in TSConfig). @kuceb Please, could you make a new release?

vamcs avatar Jan 17 '23 15:01 vamcs

First of all, I would like to thank you for all the time and hard work you put into this plugin.

I am upgrading from cypress 9 to cypress 12 and currently facing the same problem, cypress-plugin-tab is not working after upgrade. image

We also considered cypress-real-event, but compared to cypress-plugin-tab, it cannot provide the test function of key combination, for example, I press tab + shift at the same time.

Wondering if the author still plans to maintain and update the plugin in the future?

pointhalo avatar May 23 '23 08:05 pointhalo

Since this isn't maintained, and if you need it, just copy src/index.js to the support folder and import it within the commands.js file:

import './tab';

Next change the line that is breaking the plugin to this:

if (newElm && newElm.select) {

Once done, the plugin seems to be working for me.

TheColorRed avatar Sep 26 '23 15:09 TheColorRed