-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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