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

How to refresh current visiting page in Ember Test? #1431

Open
KingStar1001 opened this issue Jul 25, 2023 · 0 comments
Open

How to refresh current visiting page in Ember Test? #1431

KingStar1001 opened this issue Jul 25, 2023 · 0 comments

Comments

@KingStar1001
Copy link

I changed untracked property and try to visit same page.
But the page didn't reload.

Error case

  test('visiting your route', async function (assert) {
    await visit('your route');

    // Change untracked property
    // ...

    await visit('your route');
  })

So I changed as below code and it works well.
But it looks so strange...

Solution

  test('visiting your route', async function (assert) {
    await visit('your route');

    // Change untracked property
    // ...

    await visit('/')
    await visit('your route');
  })

Is there any better way to refresh current page?

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

1 participant