fix: hover issue

This commit is contained in:
DenserMeerkat
2024-08-18 21:34:11 +05:30
parent dc8581ea3f
commit 02b7546cf5
3 changed files with 10 additions and 6 deletions

View File

@ -15,7 +15,8 @@ void main() async {
const environmentName = "test-env-name";
const envVarName = "test-env-var";
const envVarValue = "8700000";
const testEndpoint = "https://api.apidash.dev/humanize/social?num=";
// TODO: Hover on variable doesn't work in test for long URLs
const testEndpoint = "https://api.apidash.dev?num=";
const unknown = "unknown";
const expectedCurlCode = "curl --url '$testEndpoint$envVarValue'";
@ -59,8 +60,7 @@ void main() async {
await helper.envHelper.setActiveEnvironment(environmentName);
/// Check if environment suggestions are working
await act.tap(spot<URLTextField>());
tester.testTextInput.enterText("$testEndpoint{{$envVarName");
await helper.reqHelper.addRequestURL("$testEndpoint{{$envVarName");
await tester.pumpAndSettle(
const Duration(milliseconds: 500)); // wait for suggestions
await act.tap(spot<EnvironmentTriggerOptions>()