Skip to content

Commit

Permalink
test: fix assertion for logs entry (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor-bl authored Dec 15, 2024
1 parent 4bbdb2b commit 9215929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/Android/Session/LogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void CanCaptureBugReportTest()
Assert.That(availableLogTypes, Has.Member(BugReportLogType));

var bugReportLogEntry = _driver.Manage().Logs.GetLog(BugReportLogType);
Assert.That(bugReportLogEntry, Is.Not.Null.And.Count.EqualTo(1));
Assert.That(bugReportLogEntry, Is.Not.Null.And.Count.AtLeast(1));
var bugReportLogPath = bugReportLogEntry.FirstOrDefault()?.Message;

var match = Regex.Match(bugReportLogPath ?? throw new InvalidOperationException(), @"^([\s\S])*.zip");
Expand Down

0 comments on commit 9215929

Please sign in to comment.