Skip to content

Commit

Permalink
Format update
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant-Archibald-MS committed Oct 21, 2024
1 parent 0b4fedf commit acd6fd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ public bool VerifyContainsValidNamespacePowerFxFunctions(TestSettingExtensions s

var constructor = constructors.Where(c => c.HasBody).FirstOrDefault();

if (constructor == null) {
if (constructor == null)
{
Logger.LogInformation($"No constructor with a bosy");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void SectionFound()
MockPage.Setup(x => x.ClickAsync("[data-test-id='solutions']", null)).Returns(Task.CompletedTask);

var function = new SelectSectionFunction(MockTestInfraFunctions.Object, MockTestState.Object, MockLogger.Object);

// Act
function.Execute(FormulaValue.New("solutions"));

Expand Down
6 changes: 4 additions & 2 deletions src/testengine.module.powerapps.portal/SelectSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ public BlankValue Execute(StringValue section)

private async Task ExecuteAsync(StringValue section)
{
foreach (var page in _testInfraFunctions.GetContext().Pages) {
foreach (var page in _testInfraFunctions.GetContext().Pages)
{
var url = page.Url;
var sectionName = section.Value.ToString();

// TODO: Handle case section is not visible in the left navigation. If not consider adding steps to make visible from extra options in the portal
if (url.Contains("powerapps.com") && url.Contains("/environments") && url.Contains("/home")) {
if (url.Contains("powerapps.com") && url.Contains("/environments") && url.Contains("/home"))
{
var selector = $"[data-test-id='{sectionName}']";
await page.WaitForSelectorAsync($"{selector}:visible");

Expand Down

0 comments on commit acd6fd6

Please sign in to comment.