-
Notifications
You must be signed in to change notification settings - Fork 6
/
BasicOrchardFeaturesTests.cs
28 lines (24 loc) · 1.15 KB
/
BasicOrchardFeaturesTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Lombiq.Tests.UI.BasicOrchardFeaturesTesting;
using Lombiq.Tests.UI.Samples.Constants;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace Lombiq.Tests.UI.Samples.Tests;
// The UI Testing Toolbox includes ready to use tests for some basic Orchard features as well. While the point of
// writing tests for your app is not really about testing Orchard itself but nevertheless it's useful to check if all
// the important features like login work - keep in mind that you can break these from your own code. So, here we run
// the whole test suite.
public class BasicOrchardFeaturesTests : UITestBase
{
public BasicOrchardFeaturesTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
// We could reuse the previously specified SetupHelpers.RecipeId const here but it's actually a different recipe for
// this test.
[Fact]
public Task BasicOrchardFeaturesShouldWork() =>
ExecuteTestAsync(context => context.TestBasicOrchardFeaturesAsync(RecipeIds.BasicOrchardFeaturesTests));
}
// END OF TRAINING SECTION: Basic Orchard features tests.
// NEXT STATION: Head over to Tests/EmailTests.cs.