Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Jun 17, 2023
1 parent a327b7a commit 38ec58b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lombiq.Tests.UI/Extensions/BrowserUITestContextExtensions.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -56,7 +57,7 @@ public static async Task<T> FetchWithBrowserContextAsync<T>(
};

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);
Expand Down

0 comments on commit 38ec58b

Please sign in to comment.