cypress-skip-and-only-ui
cypress-skip-and-only-ui copied to clipboard
Not seeing UI buttons with Cypress 5.0
I'm just installing this, and I'm not seeing any buttons in my Cypress UI. Related to #93 probably.
What I did:
- Installed 1.2.7 as a dev dependency and updated my Cypress config as shared below.
- Restarted Cypress UI.
- Ran all specs until they were finished.
- Ran one spec with failing tests.
My UI for a failing test looks like this:
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
}
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)?
Same, Cypress 5.x and there are no buttons.
Is there any plan to get this plugin up to date?
I would welcome external help to add the buttons back in.
My git history is littered with "remove .only" commits, lol. I'd love to get this back.
Could be due to test retries?
:tada: This issue has been resolved in version 1.2.19 :tada:
The release is available on:
Your semantic-release bot :package::rocket: