From 38ec58b43c2c1f662ee48434d3b8df028d954849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20El-Saig?= Date: Sat, 17 Jun 2023 22:59:40 +0200 Subject: [PATCH] Code cleanup. --- Lombiq.Tests.UI/Extensions/BrowserUITestContextExtensions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lombiq.Tests.UI/Extensions/BrowserUITestContextExtensions.cs b/Lombiq.Tests.UI/Extensions/BrowserUITestContextExtensions.cs index 615981821..6e4695686 100644 --- a/Lombiq.Tests.UI/Extensions/BrowserUITestContextExtensions.cs +++ b/Lombiq.Tests.UI/Extensions/BrowserUITestContextExtensions.cs @@ -1,4 +1,5 @@ -using Lombiq.Tests.UI.Services; +using Lombiq.Tests.UI.Extensions; +using Lombiq.Tests.UI.Services; using System.Diagnostics.CodeAnalysis; using System.Net.Http; using System.Threading.Tasks; @@ -56,7 +57,7 @@ public static async Task FetchWithBrowserContextAsync( }; using var client = new HttpClient(handler); - using var request = new HttpRequestMessage(method, new Uri(new Uri(context.Driver.Url), address)); + using var request = new HttpRequestMessage(method, new Uri(context.GetCurrentUri(), address)); using var response = await client.SendAsync(request); return await processResponseAsync(response);