Converting Tests back to C# but still with Playwright
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Tests.Pages.BuildCalculator;
|
||||
|
||||
public class BuildOrderComponent
|
||||
{
|
||||
private readonly Website _website;
|
||||
public BuildOrderComponent(Website website) => _website = website;
|
||||
|
||||
public ILocator JsonTextarea => _website.Locator("textarea");
|
||||
|
||||
public async Task<string> GetJsonDataAsync() =>
|
||||
await JsonTextarea.InputValueAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user