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

on button click open pick an app, but cypress considers it as opening new page url #20385

Open
ghost opened this issue Feb 28, 2022 · 7 comments
Labels
stage: proposal 💡 No work has been done of this issue type: feature New feature that does not currently exist

Comments

@ghost
Copy link

ghost commented Feb 28, 2022

Current behavior

on click of the button it calls below open pick an app in browser
image

In the application , they used window.location.assign = 'tel:98372638783'.

cypress considering it as new page load.

Desired behavior

Need to handle these kind of calls, instead of checking for the new page load.

Test code to reproduce

<title>URL Scheme Navigation example</title> <script type="text/javascript">
        function clickme() {
           window.location.assign = "tel:98372638783"
        }
    </script>
    <button onclick="clickme()" id="clickme" data-at="clickme" value="Click me!">Click Me!</button>
</body>

describe('testing', () => {

it('test the clictocall', { baseUrl: null }, () => {
  cy.visit('./url_scheme.html'); 
  cy.get('#clickme').click();
});

});

Cypress Version

9.5.0

Other

No response

@jbpallingayan
Copy link

up on this. experiencing this now. cy.on('window:prompt/alert') cant handle this.

@metalocator
Copy link

Similar experience with testing "tel:" links in our application. Removing target attribute does not help.

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 15, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2023
@bvogel
Copy link

bvogel commented Feb 21, 2024

Yeah, just bc no developer cared to take a look it got closed and not ever fixed. Now facing this as well...

@jennifer-shehane
Copy link
Member

Sorry for not seeing this earlier. I thought we had an issue open around these types of App links. They're not really currently supported right now. We'd have to add some logic to support it properly.

@jennifer-shehane jennifer-shehane added type: feature New feature that does not currently exist stage: proposal 💡 No work has been done of this issue and removed stale no activity on this issue for a long period labels Feb 26, 2024
@zinaemilian
Copy link

how can I verify that 'open pick an app' is displaying, at least for tseting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: proposal 💡 No work has been done of this issue type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

6 participants