Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing UI buttons with Cypress 5.0 #233

Closed
KatieMFritz opened this issue Aug 21, 2020 · 7 comments · Fixed by #533
Closed

Not seeing UI buttons with Cypress 5.0 #233

KatieMFritz opened this issue Aug 21, 2020 · 7 comments · Fixed by #533
Labels
help wanted Extra attention is needed released

Comments

@KatieMFritz
Copy link

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
}
@dmitry
Copy link

dmitry commented Oct 21, 2020

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)?

@tmartin2089
Copy link

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

@Light07
Copy link

Light07 commented Feb 6, 2021

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

@bahmutov
Copy link
Owner

bahmutov commented Feb 8, 2021

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

@bahmutov bahmutov added the help wanted Extra attention is needed label Feb 8, 2021
@feliperaul
Copy link

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

@bahmutov
Copy link
Owner

bahmutov commented Nov 1, 2021

Could be due to test retries?

Copy link

github-actions bot commented May 9, 2024

🎉 This issue has been resolved in version 1.2.19 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants