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

Support --route on flutter drive for Web #58980

Open
fotiDim opened this issue Jun 8, 2020 · 2 comments
Open

Support --route on flutter drive for Web #58980

fotiDim opened this issue Jun 8, 2020 · 2 comments
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: routes Navigator, Router, and related APIs. P3 Issues that are less important to the Flutter project platform-web Web applications specifically t: flutter driver "flutter driver", flutter_drive, or a driver test team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-web Triaged by Web platform team

Comments

@fotiDim
Copy link

fotiDim commented Jun 8, 2020

Use case

I want to run an integration test for flutter web where it opens a unknown route and checks for the 404 page.

flutter drive --target=test_driver/app.dart --no-headless --release --route '/password' lib/routes.dart

Proposal

On the web it seems to ignore the route parameter. On Android it works fine. I think this scenario makes way more sense on the web than on mobile since the user can type any URL in the search bar.

@VladyslavBondarenko VladyslavBondarenko added platform-web Web applications specifically t: flutter driver "flutter driver", flutter_drive, or a driver test tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 8, 2020
@jmagman jmagman added this to Awaiting triage in Tools - driver review via automation Jun 9, 2020
@jonahwilliams jonahwilliams moved this from Awaiting triage to Engineer reviewed in Tools - driver review Jun 16, 2020
@matthew-carroll
Copy link
Contributor

I would like to suggest expanding this issue to browser navigation in general.

I'm attempting to write a battery of driver tests that ensure that if the user enters a given URL after achieving an authenticated state in the app, the correct page is shown. For example: ensuring that a "sign up" page is not served if the user is already signed in. At present, I'm not sure how to write these tests, or if I can.

Ideally, I'd like a Driver API, or something similar that allows me to enter a desired URL at any moment in time as if it were typed into the address bar in the browser.

@James-A-White
Copy link

I'd like to add to this request and make sure that the --route parameter can be supported in the launch.json file. I'm developing a Flutter Web application and it would be nice to be able to have different configurations that I can select from the dropdown menu (see image below) that would launch with different query parameters in the URL.

image

@yjbanov yjbanov added P3 Issues that are less important to the Flutter project c: new feature Nothing broken; request for a new capability labels Jan 27, 2022
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-web Owned by Web platform team triaged-web Triaged by Web platform team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: routes Navigator, Router, and related APIs. P3 Issues that are less important to the Flutter project platform-web Web applications specifically t: flutter driver "flutter driver", flutter_drive, or a driver test team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-web Triaged by Web platform team
Projects
Tools - driver review
  
Engineer reviewed
Development

No branches or pull requests

7 participants