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

Unexpected wrong address in the address bar #2179

Closed
Rende11 opened this issue Jul 19, 2018 · 8 comments
Closed

Unexpected wrong address in the address bar #2179

Rende11 opened this issue Jul 19, 2018 · 8 comments
Labels
topic: 😳 whoops there is no test to run Error msg: "Whoops there is no test to run"

Comments

@Rende11
Copy link

Rende11 commented Jul 19, 2018

Current behavior:

screen shot 2018-07-19 at 20 49 06

Visiting url add in Chrome address bar which breaks test

Desired behavior:

Visiting url opens in Cypress test address bar

Steps to reproduce:

My test-case

describe('Wtf', function() {
    it('Visit', function() {
        Cypress.config({
            baseUrl: "https://ya.ru"
        });

        cy.visit('/');
    });
});

Versions

Cypress 3.0.2

@jennifer-shehane
Copy link
Member

Hi @Rende11, I am not able to reproduce the issue you are having with the code provided.

screen shot 2018-07-19 at 2 27 56 pm

Could you specify:

  • Any extra flags or config in your cypress.json or any plugin code
  • Your browser version
  • You OS version

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Jul 19, 2018
@sembel
Copy link

sembel commented Jul 20, 2018

Hi all,

I have the similar issue, and in my case I assume the problem is with corporate proxy.

  1. Electron works fine except never exits after test and this is not acceptable
  2. Chrome shows similar issue as above
  3. Chromium works fine and exists as expected, but not sure how to run it headless mode (except build the sources myself)

Rende11 are you behind corporate proxy too?

@jennifer-shehane
Copy link
Member

If you are behind a corporate proxy, we recommend trying some of our workarounds detailed here: #1469

@Rende11
Copy link
Author

Rende11 commented Jul 20, 2018

May be It related to my VPN.
cypress.json is empty
Chrome Version 67.0.3396.99 (Official Build) (64-bit)
Mac OS 10.13.6

#1469 doesn't helps

electron has another issue - after several steps in test:

screen shot 2018-07-20 at 23 07 10

@sembel
Copy link

sembel commented Jul 20, 2018

@jennifer-shehane, thanks I will try

@sembel how u run it in chromium?

hm, this thread is not updated... I don't see the message from email notification.
On windows I had to install chromium, now I'm not sure how I did it, as I remember chrome-win32 I had to put in google chrome folder, otherwise it was not available.

After this, chromium will be in dropdown menu in cypress window and command line will accept --browser chromium

@sembel
Copy link

sembel commented Jul 23, 2018

In my case removing "system" value from HKLM\Software\Policies\Google\Chrome:ProxyMode resolved the problem.

@amirse80
Copy link

amirse80 commented Sep 5, 2018

Hi,

I have a similar issue my self. Actually I wrote a post on stackoverflow (https://stackoverflow.com/questions/52168486/can%c2%b4t-open-an-internal-page-in-cypress-chrome) but since I don't get any answers there I try here as well.

We have an cypress issue that is similar to the issue described in "#850". The reason for why I am creating a new post is that I have done some changes in the environment which makes this work but only after the first fail and then manually click on the failing URL.

Test1:

  1. Default cypress\plugins\index.js file (no changes)
  2. launch the internal page cy.visit('xxx')
  3. Error 401.
  4. Click on the link below the error text. Another tab is opened and message UNAUTHORIZED is shown.
  5. Paste same URL in default Chrome->works fine.

Test2:

  1. Modify the cypress\plugins\index.js: args.push('--proxy-pac-url=xxx') (I have tested other arguments but this is the only one that makes something different)
  2. Launch the internal page cy.visit('xxx')
  3. Error 403.
  4. Click on the link below the error text. Another tab is opened and the page is shown CORRECTLY.

This is the reason why I post this new message. I want to ask if there is a way to get Cypress to open the page automatically via cy.visit() in the same way as when I click on the failing URL and it opens the page in the same cypress browser but just another tab?

@jennifer-shehane jennifer-shehane added the topic: 😳 whoops there is no test to run Error msg: "Whoops there is no test to run" label Jan 8, 2019
@jennifer-shehane
Copy link
Member

The original issue was never completely verified, but as some commenters had success after editing their proxy settings, I will assume this will be fixed with our upcoming 3.3.0 release of improved proxy support. #3531

Please comment or open a new issue if this is not the case.

@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: 😳 whoops there is no test to run Error msg: "Whoops there is no test to run"
Projects
None yet
Development

No branches or pull requests

4 participants