You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable Cypress Studio by adding the experimentalStudio: true attribute to the Cypress configuration.
// cypress.config.js or cypress.config.tsimport{defineConfig}from'cypress'exportdefaultdefineConfig({e2e: {experimentalStudio: true,},})
Launch Cypress and select End To End testing.
Choose a browser to run specs in.
Run a test spec.
Hover over a test in the Command Log.
The "Add Commands to Test" button is not visible.
Desired behavior
The "Add Commands to Test" button should be visible and clickable to launch Cypress Studio.
Test code to reproduce
beforeEach(()=>{// Launch the application URL before any tests runcy.visit('https://www.google.com/')});it('Studio test',()=>{cy.log('Test over')})
import{defineConfig}from"cypress";importfsfrom"fs";import{configureXrayPlugin}from"cypress-xray-plugin";importmochawesomefrom"cypress-mochawesome-reporter/plugin";exportdefaultdefineConfig({e2e: {experimentalStudio: true,// Cypress Dashboard Project IDprojectId: "PROJECT_ID_PLACEHOLDER",// Enable Video Recording featurevideo: true,// Enable Video compressing featurevideoCompression: true,// Timeout for waiting for a page to load (in milliseconds)pageLoadTimeout: 60000,// Timeout for waiting for a Cypress command to complete (in milliseconds)defaultCommandTimeout: 60000,// Height of the browser viewportviewportHeight: 768,// Width of the browser viewportviewportWidth: 1366,// Base URL for the application under testbaseUrl: "BASE_URL_PLACEHOLDER",// Hosts to block during the test (e.g., to prevent loading third-party scripts)blockHosts: ["BLOCK_HOSTS_PLACEHOLDER"],// Specify the fixtures folder locationfixturesFolder: "cypress/e2e/fixtures",// Specify the reporter to use for test resultsreporter: "cypress-mochawesome-reporter",// Include inline assets in the report for standalone viewingreporterOptions: {inlineAssets: true,reportFilename: "E2ETests",overwrite: true,// Ensure that reports are not overwrittenhtml: true,// Generate HTML reportjson: true,// Generate JSON report},// Environment variables for Cypress testsenv: {CYPRESS_TEST_USER_PASSWORD: "CYPRESS_TEST_USER_PASSWORD_PLACEHOLDER",MAILINATOR_API_TOKEN: "MAILINATOR_API_TOKEN_PLACEHOLDER",API_GATEWAY_URL: "API_GATEWAY_URL_PLACEHOLDER",},// Exclude specific folderexcludeSpecPattern: ["cypress/e2e/test/monitoring"],// Function to set up Node event listenerssetupNodeEvents: async(on,config)=>{// Event listener that runs after each specon("after:spec",(spec,results)=>{if(results&&results.video){// Check if there are any failures for any retry attemptsconstfailures=results.tests.some((test)=>test.attempts.some((attempt)=>attempt.state==="failed"),);if(!failures){// Delete the video if the spec passed and no tests retriedfs.unlinkSync(results.video);}}});// Check if JIRA_API_TOKEN is providedif(config.env.JIRA_API_TOKEN){// Configure Xray plugin if JIRA_API_TOKEN is providedawaitconfigureXrayPlugin(on,config,{jira: {testExecutionIssue: {fields: {summary: `Nightly runs - ${newDate().toISOString().split("T")[0]}`,},},url: "JIRA_URL_PLACEHOLDER",// Jira instance URLprojectKey: "PROJECT_KEY_PLACEHOLDER",},xray: {uploadResults: true,// Enable uploading of test results to Xray},plugin: {debug: true,},});}else{// Configure Mochawesome plugin if JIRA_API_TOKEN is not providedmochawesome(on,config);}![image](https://github.com/user-attachments/assets/dcbb97d1-0c24-46d3-9b78-8cbbe7e41c64)// Ensure to return the updated config objectreturnconfig;},},});
Cypress Version
13.15.1
Node version
20.18.0
Operating System
Windows 11 Enterprise 23H2
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered:
Current behavior
Steps to Reproduce
experimentalStudio: true
attribute to the Cypress configuration.The "Add Commands to Test" button is not visible.
Desired behavior
The "Add Commands to Test" button should be visible and clickable to launch Cypress Studio.
Test code to reproduce
Cypress Version
13.15.1
Node version
20.18.0
Operating System
Windows 11 Enterprise 23H2
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: