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

[Bug] 3.24.2: href missing from links in rendering tests #19408

Closed
Turbo87 opened this issue Feb 15, 2021 · 11 comments
Closed

[Bug] 3.24.2: href missing from links in rendering tests #19408

Turbo87 opened this issue Feb 15, 2021 · 11 comments

Comments

@Turbo87
Copy link
Member

Turbo87 commented Feb 15, 2021

🐞 Describe the Bug

In a rendering test that calls this.owner.setupRouter() the href of a LinkTo component could be tested in 3.24.1 and below, but with 3.24.2 this no longer works and the href is missing.

🔬 Minimal Reproduction

    test('foo', async function (assert) {
      this.owner.setupRouter();

      await render(hbs`<LinkTo @route="login">test</LinkTo>`);
      assert.dom('a').hasAttribute('href', `/login`);
    });

😕 Actual Behavior

Actual: Element a does not have attribute "href"

🤔 Expected Behavior

Expected: Element a has attribute "href" with value "/login"

🌍 Environment

  • Ember: 3.24.2

/cc @rwjblue @xg-wang

@xg-wang
Copy link
Contributor

xg-wang commented Feb 15, 2021

This regression should be fixed by #19395 once we have a release out

@boris-petrov
Copy link
Contributor

What about 3.25.1?

@Turbo87
Copy link
Member Author

Turbo87 commented Feb 15, 2021

@xg-wang great, thanks. must've missed that PR when I searched for related issues 🙈

@rwjblue
Copy link
Member

rwjblue commented Feb 15, 2021

@boris-petrov - Both 3.24 and 3.25 should have patch releases with the fix. There are a number of regressions that I'm trying to coalesce into a patch release (for both), will try to do releases either tomorrow or Wednesday with whatever has landed by then.

@igbopie
Copy link

igbopie commented Feb 20, 2021

Same here. 3.24.1 works fine were as 3.24.2 breaks the tests, 3.25.1 breaks as well.

@esbanarango
Copy link
Contributor

👋 Same issue with ember-source 3.25.1.

@esbanarango
Copy link
Contributor

I just tried with 3.26.0-beta.3 and the href is there BUT it is ALWAYS blank.

@rwjblue
Copy link
Member

rwjblue commented Mar 8, 2021

Hmm, that is odd. We have explicit tests for this over in #19395.

@esbanarango - Do you have a basic reproduction?

@xg-wang - Mind taking a look?

@rwjblue
Copy link
Member

rwjblue commented Mar 8, 2021

Other than the report above (for 3.26.0-beta.3) the fixes have been released for 3.24.3 and 3.25.3. Leaving this open so we can investigate @esbanarango's report above (if correct we will need further fixes for 3.24 + 3.25).

@xg-wang
Copy link
Contributor

xg-wang commented Mar 8, 2021

This should have been fixed by new releases today. I just reran the super-rental-tutorial ember-learn/super-rentals-tutorial#176

@esbanarango
Copy link
Contributor

@xg-wang @rwjblue The issue I was having is actually related with https://github.com/buschtoens/ember-link buschtoens/ember-link#554

So I think we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants