cypress-skip-and-only-ui icon indicating copy to clipboard operation
cypress-skip-and-only-ui copied to clipboard

Buttons that are displayed do not seem to function other than collapse and open the tests

Open twistedclown opened this issue 4 years ago • 2 comments

I am new to cypress and learning it as fast as I can as I am enjoying how it works and helps me automate my tests with ease. I had read up on this plugin being able to run specific tests only or skip it.

I have Cypress 4.2.0 installed and only 2 buttons appear unlike the 3 that is in the GIF preview. The following buttons appear:

  1. Run only this test
  2. Remove Or Skip Or Only

The 3rd button that is a circle does not seem to appear. In either case, when I select one of the 2 buttons, it only collapses the test or reopens them. It doesn't do what I perceived to occur. Can someone help me understand what I am not doing correctly in order to get these button to function properly?

twistedclown avatar Jun 25 '20 18:06 twistedclown

I had this behaviour when I hadn't installed it properly. I had done the NPM install, plus had put this in the cypress\integration\*support*\index.js (asterisks are just to highlight the folder name):

require("cypress-skip-and-only-ui/support");

But I hadn't properly put this into the cypress\integration\*plugins*\index.js file:

const task = require("cypress-skip-and-only-ui/task");

and (inside the module.exports):

on("task", task);

Once I made sure those were in correctly, the buttons stopped working.

If this was not the problem in your case, a useful debugging step is to reveal the developer tools (e.g. shift-control-i in Chrome) on the Cypress test runner window, which may reveal error messages:

image

darrelfrancis avatar Mar 06 '22 07:03 darrelfrancis

@darrelfrancis - You are correct. I did the same steps that you mentioned and the buttons do not work at all. I hover over them and it states what it is suppose to do nothing happens when clicking them.

twistedclown avatar Mar 29 '22 17:03 twistedclown

:tada: This issue has been resolved in version 1.2.19 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar May 09 '24 00:05 github-actions[bot]