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

Not seeing UI buttons with Cypress 5.0

Open KatieMFritz opened this issue 4 years ago • 6 comments

I'm just installing this, and I'm not seeing any buttons in my Cypress UI. Related to #93 probably.

What I did:

  1. Installed 1.2.7 as a dev dependency and updated my Cypress config as shared below.
  2. Restarted Cypress UI.
  3. Ran all specs until they were finished.
  4. Ran one spec with failing tests.

My UI for a failing test looks like this: Screen Shot 2020-08-21 at 2 08 50 PM

Config files

// support/index.js
require('cypress-skip-and-only-ui/support')
// plugins /index.js
const dotenvPlugin = require('cypress-dotenv')
const task = require('cypress-skip-and-only-ui/task')

module.exports = (on, config) => {
    // Cypress skip and only UI
    on('task', task)

  // Load environment variables from .env file
    config = dotenvPlugin(config, { path: '../../.env' }, true)

  // Allow overriding baseUrl from an environment variable
    const baseUrl = config.env.DEFAULT_SITE_URL || null
    if (baseUrl) {
        config.baseUrl = baseUrl
    }
    return config
}

Cypress.json (not changed, but in case it helps)

{
  "baseUrl": "[localUrl]",
  "integrationFolder": "cypress/integration/[myfolder]",
  "chromeWebSecurity": false,
  "nodeVersion": "system",
  "projectId": "[id]",
  "retries": 2
}

KatieMFritz avatar Aug 21 '20 18:08 KatieMFritz

Any ideas what is the alternative option to the cypress-skip-and-only-ui plugin and using it.only (I'm quite often forget to remove .only from specs before commit)?

dmitry avatar Oct 21 '20 09:10 dmitry

Same, Cypress 5.x and there are no buttons.

tmartin2089 avatar Nov 09 '20 18:11 tmartin2089

Is there any plan to get this plugin up to date?

Light07 avatar Feb 06 '21 09:02 Light07

I would welcome external help to add the buttons back in.

bahmutov avatar Feb 08 '21 22:02 bahmutov

My git history is littered with "remove .only" commits, lol. I'd love to get this back.

feliperaul avatar Nov 01 '21 19:11 feliperaul

Could be due to test retries?

bahmutov avatar Nov 01 '21 22:11 bahmutov

: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]