Skip to content

Commit f521bc8

Browse files
committed
Fix a test breakage related to #284
The old test was no longer relevant, but a new one could take its place.
1 parent a312054 commit f521bc8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tests/CSF.Screenplay.Selenium.Tests/Tasks/OpenUrlRespectingBaseTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public async Task TheActionCreatedByThisTaskShouldContainTheCorrectReport(IWebDr
5151
}
5252

5353
[Test, AutoMoqData]
54-
public async Task TheActionCreatedByThisTaskShouldContainTheCorrectReportWhenTheActorDoesNotHaveABaseUrl(IWebDriver driver, DriverOptions options)
54+
public async Task TheActionCreatedByThisTaskShouldNotUpdateAnAlreadyAbsoluteUrl(IWebDriver driver, DriverOptions options)
5555
{
5656
var actor = new Actor("Anthony", Guid.NewGuid());
5757
IPerformable? performable = null;
5858

5959
void OnPerform(object? sender, PerformableEventArgs ev) => performable = (IPerformable)ev.Performable;
6060

61-
var namedUri = new NamedUri("test.html", "the test page");
61+
var namedUri = new NamedUri("https://contoso.com/test.html", "the test page");
6262
actor.IsAbleTo(new BrowseTheWeb(Mock.Of<IGetsWebDriver>(x => x.GetDefaultWebDriver(It.IsAny<Action<DriverOptions>>()) == new WebDriverAndOptions(driver, options))));
6363
var sut = new OpenUrlRespectingBase(namedUri);
6464
var valueFormatterProvider = new ValueFormatterProvider(new ServiceCollection().AddTransient<ToStringFormatter>().BuildServiceProvider(),
@@ -75,7 +75,7 @@ public async Task TheActionCreatedByThisTaskShouldContainTheCorrectReportWhenThe
7575
{
7676
Assert.That(performable, Is.InstanceOf<OpenUrl>(), "Performable is correct type");
7777
Assert.That(((OpenUrl) performable!).GetReportFragment(actor, formatter).ToString(),
78-
Is.EqualTo("Anthony opens their browser at the test page: test.html"),
78+
Is.EqualTo("Anthony opens their browser at the test page: https://contoso.com/test.html"),
7979
"The report is correct");
8080
});
8181
}

0 commit comments

Comments
 (0)