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

Profile selection issue with edge #30731

Open
Nishantbel opened this issue Dec 10, 2024 · 3 comments
Open

Profile selection issue with edge #30731

Nishantbel opened this issue Dec 10, 2024 · 3 comments
Labels
browser: edge stage: needs information Not enough info to reproduce the issue

Comments

@Nishantbel
Copy link

Nishantbel commented Dec 10, 2024

Current behavior

Cypress test is working fine in Runner but when i am trying to run the same test in edge using CLI it ask me to select profile

Desired behavior

It should be wok in both but unfortunately i am getting Alert for selecting Profile and when i am trying to run in electron its not loading to desired page

Test code to reproduce

//import { defineConfig } from "cypress";
const { defineConfig } = require('cypress')
const { verifyDownloadTasks } = require('cy-verify-downloads');
const readXlsx = require('../Morpheus_QA/cypress/plugins/read-xlsx')
// Populate process.env with values from .env file
require('dotenv').config()
 
//read the file for 459 script
const xlsx = require("node-xlsx").default;
const fs = require("fs");
const path = require("path");
 
module.exports = defineConfig({
  e2e: {
  // specPattern:["**/*.js"], // Adjust as needed
  // supportFile: false,
  viewportWidth:1280,
  viewportHeight: 800,
  video:false,
  defaultCommandTimeout:60000,
  pageLoadTimeout:240000,
  screenshotOnRunFailure: true,
  screenshotsFolder: "cypress/screenshots",
  allure: true,
  allureReuseAfterSpec: true,
  experimentalMemoryManagement:true,
  numTestsKeptInMemory:1,
 
  setupNodeEvents(on, config) {
 
    //
   
    on('task', verifyDownloadTasks);
   
    on('task', {
      'readXlsx': readXlsx.read
    });
   
    on("task", {
      parseXlsx({ filePath }) {
        return new Promise((resolve, reject) => {
          try {
            const jsonData = xlsx.parse(fs.readFileSync(filePath));
            resolve(jsonData);
          } catch (e) {
            reject(e);
          }
          allureWriter(on, config);
         
        });
        }
      });
     
      return config;
  },
 
    //baseUrl:"https://morpheus-dev.zurichna.com",
    baseUrl:"https://qa1.morpheus.zurichna.com",
    //baseUrl:"https://qa2.morpheus.zurichna.com",
    // baseUrl:"https://qa1.morpheus.zurichna.com",
    //baseUrl:"https://qa2.morpheus.zurichna.com",
    //baseUrl:"[https://perf.morpheus.zurichna.com/"](https://perf.morpheus.zurichna.com/%22),
    //baseUrl:"https://trng.morpheus.zurichna.com",
    //baseUrl:"https://preprod.morpheus.zurichna.com",
    // baseUrl:"[https://dev3.morpheus.zurichna.com/home?search="](https://dev3.morpheus.zurichna.com/home?search=%22),
    excludeSpecPattern: process.env.CI ? ['cypress/e2e/Morpheus/Regression/Smoke.cy.js'] : []
  },
  reporter: "cypress-multi-reporters",
  reporterOptions: {
    reporterEnabled: "mochawesome",
        mochawesomeReporterOptions: {
            quite: true,
            overwrite: false,
            html: true,
            json: true,
            embeddedScreenshots:true,
            reportDir: "cypress/reports/mocha",
            reportFilename: "report",
           
        }
    },
 
  env: {
    allureReuseAfterSpec:true,
    auth_username: process.env.AUTH_USERNAME,
    auth_password: process.env.AUTH_PASSWORD,
    okta_domain: process.env.REACT_APP_OKTA_DOMAIN,
    okta_client_id: process.env.REACT_APP_OKTA_CLIENTID
  }
})

Cypress Version

v13.15.2

Node version

v18.16.0

Operating System

Win 22631.4460

Debug Logs

No response

Other

No response

@Nishantbel Nishantbel changed the title Profile selection Profile selection issue with edge Dec 10, 2024
@jennifer-shehane
Copy link
Member

@Nishantbel Could you post a screenshot of what you're seeing? This 'select profile' popup?

@jennifer-shehane jennifer-shehane added stage: needs information Not enough info to reproduce the issue browser: edge labels Dec 10, 2024
@Nishantbel
Copy link
Author

Hi @jennifer-shehane please check the below screenshot for the same
image
image
image

@Nishantbel
Copy link
Author

@jennifer-shehane any update on the above issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: edge stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants