https://cypress.io logo
Docs
Join the conversationJoin Discord
Channels
ama-josh-justice
ambassador-playground
angular
best-practices
component-testing
cy10-feedback
cypress-announcements
cypress-cloud
cypress-feedback
cypress-frameworks
cypress-frameworks
cypress-plugin
cypress-updates
e2e-testing
experimental-tools
general
general-new
help
how-to-get-help
i-made-this
i-need-help
introduce-yourself
jobs
plugin-channel
react
real-world-app
resources
rules
vue
welcome
Powered by Linen
plugin-channel
  • View Plugin Resources
    b

    best-flower-17510

    01/17/2023, 5:47 PM
    Documentation: https://docs.cypress.io/plugins Submit Your Plugin: https://github.com/cypress-io/cypress-documentation/blob/main/CONTRIBUTING.md#adding-plugins
  • Is anyone having problems with overwrite command inside index.js of cypress-if plugin
    b

    brave-river-4142

    01/17/2023, 9:06 PM
    I updated my cypress to version 12, but I use this plugin for UI tests, and I noticed that cypress complains about this overwrite.
    g
    s
    +2
    • 5
    • 11
  • xls file read using cypress
    w

    wooden-scientist-4695

    01/25/2023, 10:32 AM
    Hi team I need to read data from .xls using cypress please help me on this I have tried cy.parseXlsx method but its not helpful to read file form .xls file
    g
    • 2
    • 6
  • post script not supported when spec fails in cypress-repeat
    p

    purple-ice-75399

    03/16/2023, 10:08 PM
    Hi there! I made an issue in the repo found here: https://github.com/bahmutov/cypress-repeat/issues/44, but not sure if it's caught anyone's eye. TLDR It would be really nice to have the option of having failed tests without exiting altogether so we can still generate reports and add config options. Here's what we currently have: package.json
    "cy:run:repeat": "cypress-repeat run -n ${npm_config_times:-5} --browser ${npm_config_test_browser:-chrome} --record false --env configFile=${npm_config_env:-test} --spec",
    
    // Pre and Post scripts
    "precy:run:repeat": "npm run report:clean",
    "postcy:run:repeat": "npm run report:merge & npm run report:generate",
    
    // Where the scripts point to
    "report:clean": "rm -R -f cypress/reports",
    "report:merge": "mochawesome-merge cypress/reports/*.json > cypress/reports/index.json",
    "report:generate": "marge cypress/reports/index.json --reportDir cypress/reports/mochaReport --assetsDir cypress/reports/mochaReport/assets --charts true --showHooks always",
    When the repeats finish all successfully, the report is made, and the terminal looks like:
    ***** finished 5 run(s) successfully *****
    
    > postcy:run:repeat
    > npm run report:merge & npm run report:generate
    ... so on and so forth
    When a fail occurs:
    cypress-repeat: run 2 of 3 failed
    and kicked out. No post script triggered. I'm guessing it has something to do with process.exit(testResults.totalFailed) found here: https://github.com/bahmutov/cypress-repeat/blob/main/index.js?rgh-link-date=2023-01-20T02%3A15%3A17Z#L153, but not totally sure. We have a workaround in place being adding
    ; npm run report:merge & npm run report:generate
    to our main script, but it's not doable with additional config options we wanna add occasionally. Any other ideas or help is much appreciated. Thanks!
    g
    • 2
    • 1
  • cypress-slack-notify not sending notification
    m

    microscopic-student-40589

    03/23/2023, 8:01 AM
    Iam trying to send notification but unable to send. iam running the cypress like attached image and this is my config file import { defineConfig } from 'cypress'; const notificationConfiguration = { 'AdminJobs.js': '#cypress-notify', } export default defineConfig({ chromeWexxxxxxxxxxxxxbSecurity: false, viewportWidth: 1920, viewportHeight: 1080, env: { }, compilerOptions: { sourceType: 'module', types: ['node', 'cypress', 'cypress-react-selector'], }, e2e: { setupNodeEvents(on, config) { return require('./cypress/plugins/index.js')(on, config); require('cypress-slack-notify')(on, notificationConfiguration) }, baseUrl: '', specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', }, });
    g
    • 2
    • 2
Powered by Linen
cypress-slack-notify not sending notification
m

microscopic-student-40589

03/23/2023, 8:01 AM
Iam trying to send notification but unable to send. iam running the cypress like attached image and this is my config file import { defineConfig } from 'cypress'; const notificationConfiguration = { 'AdminJobs.js': '#cypress-notify', } export default defineConfig({ chromeWexxxxxxxxxxxxxbSecurity: false, viewportWidth: 1920, viewportHeight: 1080, env: { }, compilerOptions: { sourceType: 'module', types: ['node', 'cypress', 'cypress-react-selector'], }, e2e: { setupNodeEvents(on, config) { return require('./cypress/plugins/index.js')(on, config); require('cypress-slack-notify')(on, notificationConfiguration) }, baseUrl: '', specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', }, });
@gray-kilobyte-89541
g

gray-kilobyte-89541

03/23/2023, 10:35 AM
look at your
setupNodeEvents(on, config) {
View count: 1