-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathPauseModule.cs
More file actions
37 lines (32 loc) · 1.43 KB
/
PauseModule.cs
File metadata and controls
37 lines (32 loc) · 1.43 KB
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
29
30
31
32
33
34
35
36
37
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System.ComponentModel.Composition;
using Microsoft.Extensions.Logging;
using Microsoft.Playwright;
using Microsoft.PowerApps.TestEngine.Config;
using Microsoft.PowerApps.TestEngine.Modules;
using Microsoft.PowerApps.TestEngine.PowerFx.Functions;
using Microsoft.PowerApps.TestEngine.Providers;
using Microsoft.PowerApps.TestEngine.System;
using Microsoft.PowerApps.TestEngine.TestInfra;
using Microsoft.PowerFx;
namespace testengine.module
{
[Export(typeof(ITestEngineModule))]
public class PauseModule : ITestEngineModule
{
public void ExtendBrowserContextOptions(BrowserNewContextOptions options, TestSettings settings)
{
}
public void RegisterPowerFxFunction(PowerFxConfig config, ITestInfraFunctions testInfraFunctions, ITestWebProvider testWebProvider, ISingleTestInstanceState singleTestInstanceState, ITestState testState, IFileSystem fileSystem)
{
ILogger logger = singleTestInstanceState.GetLogger();
config.AddFunction(new PauseFunction(testInfraFunctions, testState, logger));
logger.LogInformation("Registered Pause()");
}
public async Task RegisterNetworkRoute(ITestState state, ISingleTestInstanceState singleTestInstanceState, IFileSystem fileSystem, IPage Page, NetworkRequestMock mock)
{
await Task.CompletedTask;
}
}
}