Skip to content

Page goes into infinite refresh loop(Phoenix Liveview websites) #29690

@bynasrivastav99

Description

@bynasrivastav99

Current behavior

When navigating from any page to another page which uses Phoenix Liveview, the page goes into infinite refresh loop.
In the below code I first visit a website(could be any website) and from that website I try redirecting to another webpage(website made using Phoenix Liveview) and try and click on 'Get-Started' button. But as soon as cypress redirects to the concerned page it starts to refresh and keeps on refreshing and the execution of test lines does not move forward.
Note: If we navigate directly to page using Phoenix Liveview, the refresh issue does not seem to happen.

Test.page.refresh.issue.mp4

Desired behavior

The test should first visit the given webpage, then navigate to another given webpage and click on 'Get-Started' button thus opening sign-in pop-up.

Test code to reproduce

/// <reference types="Cypress" />

describe("Visit", () => {
  it("visit testcase", () => {
    cy.visit("https://elixirstream.dev/regex");//Can visit any webpage
    cy.visit('https://rocketvalidator.com/');//Website made by elixir+Phoenix LV
    cy.contains('Get Started').click();
    //Below are a list of few website which produce same behaviour.
     //cy.visit('https://www.intelidoc.io/');
    // cy.visit('https://2024.elixirconf.com/');
    //cy.visit("https://websocketstest.com/ ");
  });
});

Cypress Version

13.11.0

Node version

v21.4.0

Operating System

Windows 11 Pro

Debug Logs

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions