Skip to content

Commit

Permalink
progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dummy committed Mar 17, 2019
1 parent 39ce3ed commit ae1a915
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/FluffySpoon.Automation.Web.Tests/WebAutomationEngineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task WebAutomationEngineTest()

await RunDragAndDropTest(serviceProvider, server);

await RunTestAsync(
await RunTestAsync(
serviceProvider,
async engine =>
{
Expand All @@ -74,18 +74,6 @@ await engine.Expect
.Text("hover").In("label");
});

await RunTestAsync(
serviceProvider,
async engine =>
{
await engine.OpenTest(server, "engine/focus.html");
await engine.Focus.On("input");
await engine.Expect
.Text("focused").In("label");
});

await RunTestAsync(
serviceProvider,
async engine =>
Expand Down Expand Up @@ -242,6 +230,8 @@ await RunTestAsync(
{
await engine.OpenTest(server, "engine/wait-until.html");
await engine.Click.On("button");
await engine.Wait(until => until
.Text("loaded").In("button"));
});
Expand Down Expand Up @@ -271,7 +261,19 @@ await RunTestAsync(
Assert.AreEqual(3, bMatches.Count);
Assert.AreEqual(2, cMatches.Count);
});
}

await RunTestAsync(
serviceProvider,
async engine =>
{
await engine.OpenTest(server, "engine/focus.html");
await engine.Focus.On("input");
await engine.Expect
.Text("focused").In("label");
});
}
}
}

Expand Down

0 comments on commit ae1a915

Please sign in to comment.