Skip to content

Variables clash with element in test suite #20819

Closed
@amk221

Description

@amk221

🐞 Describe the Bug

Tests fail if variables clash with elements in the template

Example

await render(
  <template>
    <span>Hello World</span>
  </template>
);

const span = find('span');
assert.dom(span).hasText();
Cannot access 'span' before initialization

🔬 Minimal Reproduction

Minimal reproduction

😕 Actual Behavior

Test errors

🤔 Expected Behavior

I should be allowed to chose the variable name

🌍 Environment

  • Ember: - 5.12
  • Ember-CLI: - 5.12
  • Node.js/npm: - 22.11
  • OS: - mac
  • Browser: - chrome

➕ Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions