Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: EntitySubGridStepsFeature.SwitchSubgridView failing #137

Open
tdashworth opened this issue Sep 13, 2022 · 2 comments
Open

test: EntitySubGridStepsFeature.SwitchSubgridView failing #137

tdashworth opened this issue Sep 13, 2022 · 2 comments
Assignees
Labels
bug Something isn't working easy-repro Issues related to our dependency on easy repro

Comments

@tdashworth
Copy link
Contributor

tdashworth commented Sep 13, 2022

Describe the bug

The above test is failing for the following error:

Test method Capgemini.PowerApps.SpecFlowBindings.UiTests.EntitySubGridStepsFeature.SwitchSubgridView threw exception:
OpenQA.Selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":".//div[@class='ag-center-cols-viewport']//div[@role='rowgroup']"}
(Session info: headless chrome=105.0.5195.102)
   at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand`1.Execute[T1,T2,T3,T4,T5,T6,T7,T8,T9](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9)
   at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand`1.Execute(IWebDriver driver)
   at Microsoft.Dynamics365.UIAutomation.Browser.BrowserPage.Execute[TResult](BrowserCommandOptions options, Func`2 delegate)
   at Microsoft.Dynamics365.UIAutomation.Api.UCI.SubGrid.GetSubGridItemsCount(String subgridName)
   at Capgemini.PowerApps.SpecFlowBindings.Steps.EntitySubGridSteps.ThenICanSeeRecordsInTheSubgrid(String compare, Int32 count, String subGridName) in \bindings\src\Capgemini.PowerApps.SpecFlowBindings\Steps\EntitySubGridSteps.cs:line 114
   at TechTalk.SpecFlow.Bindings.BindingInvoker.InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration)
   at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStepMatch(BindingMatch match, Object[] arguments)
   at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStep(IContextManager contextManager, StepInstance stepInstance)
   at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnAfterLastStep()

To reproduce

Run the UI test suite.

Expected behaviour

Test passes.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Test framework [e.g. NUnit/MSTest/xUnit]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
  • Power Apps environment version

Additional context

https://capgeminiuk.visualstudio.com/GitHub%20Support/_build/results?buildId=8027&view=ms.vss-test-web.build-test-results-tab&runId=1015220&resultId=100022&paneView=debug

@tdashworth tdashworth added the bug Something isn't working label Sep 13, 2022
@tdashworth
Copy link
Contributor Author

From the stack trace, this looks to be an EasyRepro issue around getting the count of records in a sub-grid.

@AhmedD43
Copy link
Contributor

Test has been resolved and passes when run.

@AhmedD43 AhmedD43 reopened this Sep 13, 2022
@tdashworth tdashworth added the easy-repro Issues related to our dependency on easy repro label Sep 22, 2022
@tdashworth tdashworth assigned leroy-douglas and unassigned AhmedD43 Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working easy-repro Issues related to our dependency on easy repro
Projects
None yet
Development

No branches or pull requests

3 participants