Make Tor Version Check nicer
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2023-06-14 12:27:22 -07:00
parent c3cd8d5d66
commit 4a3770d0ec
1 changed files with 4 additions and 3 deletions

View File

@ -40,15 +40,16 @@ StepDefinitionGeneric TorVersionPresent() {
context.expect(versionString, "#.#.#", reason: "error reading version string from fetch-tor.sh");
return;
}
context.world.attach(versionString, "text/plain", "Then I expect the Tor version to be present");
context.world.attach( versionString.substring(0,4), "text/plain", "Then I expect the Tor version to be present");
//context.reporter.message("test!!!", MessageLevel.info);
print("looking for version string $versionString");
return await context.world.appDriver.waitUntil(() async {
await context.world.appDriver.waitForAppToSettle();
final finder = context.world.appDriver.findBy(
versionString,
versionString.substring(0,4),
FindType.text,
);
final isP = await context.world.appDriver.isPresent(finder);
final isP = context.world.appDriver.isPresent(finder);
return isP;
});
},