Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Canvas Application - Name isn't value.

Open
#644 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
testing-qa

Research direction

Start with the provided Power Fx YAML test case and reproduce the failure using a control named Title_1, then compare it with the passing Title1 case. Trace the test execution and name-resolution path for gallery controls; done means the underscore-named control is accepted and the test passes without the reported errors.

Written by the indexing model from the issue text.

Description

bug new
  • Please attach the test suite YAML & .msapp which demonstrates the issue you are experiencing and any logs written to the specified outputDirectory. (Please do not attach any file which may contain sensitive personal or company data.)

Describe the bug

When control has _ in the name unable to create test.

Errors: Error 35-43: Name isn't valid. 'Title_1' isn't recognized.
Error 43-48: The '.' operator cannot be used on Error values.
Error 48-49: Incompatible types for comparison. These types can't be compared: Error, Text.
Result: Failed

To Reproduce

Steps to reproduce the behavior:

  1. Create canvas application

Image

  1. Sample test which fails
# yaml-embedded-languages: powerfx
testSuite:
  testSuiteName: Basic Gallery
  testSuiteDescription: Verifies that you can interact with controls within a basic gallery
  persona: User1
  appId: d9d23189-9bbb-4ba3-9ace-59019ae64455

  testCases:
    - testCaseName: Case1
      testSteps: |
        = Assert(Index(Gallery1.AllItems, 1).Title_1.Text="Test");

testSettings:
  locale: "en-US"
  recordVideo: true
  headless: false
  browserConfigurations:
    - browser: Chromium
      channel: msedge

environmentVariables:
  users:
    - personaName: User1
      emailKey: user1Email
      passwordKey: NotNeeded
  1. Rename control from Title_1 and Title1 run test.

  2. Publish new version

# yaml-embedded-languages: powerfx
testSuite:
  testSuiteName: Basic Gallery
  testSuiteDescription: Verifies that you can interact with controls within a basic gallery
  persona: User1
  appId: d9d23189-9bbb-4ba3-9ace-59019ae64455

  testCases:
    - testCaseName: Case1
      testSteps: |
        = Assert(Index(Gallery1.AllItems, 1).Title1.Text="Test");

testSettings:
  locale: "en-US"
  recordVideo: true
  headless: false
  browserConfigurations:
    - browser: Chromium
      channel: msedge

environmentVariables:
  users:
    - personaName: User1
      emailKey: user1Email
      passwordKey: NotNeeded
  1. Run test and result pass
Dominant language
C#
Stars
150
Forks
55
Avg merge
5d 23h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/PowerApps-TestEngine

All issues in microsoft/PowerApps-TestEngine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.