question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to use `tab` helper

See original GitHub issue

Hello, I need some help ! When I do: import helpers from '@ember/test-helpers';

In the helpers object, I don’t have the tab util. I already tried with the latest version.

Is it normal? Should I do something specific?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yannbertrandcommented, Aug 9, 2022

Hello @ro0gr,

We’ve set up a minimal reproduction case.

The GitHub Action CI should fail because of the issue we have.

You can also run it locally with:

  1. Cloning the repo
  2. npm ci (we’re using Node 16.14.0)
  3. npm test or npm start then going to http://localhost:4200/tests

The simple test we have is in the /tests/unit/components/trap-focus-test.js file. As you can see there, tap is imported and is a function but tab is not for some reason.

There is a warning because Ember CLI is not tested in our Node version because we’re using the Ember 3.18.0 (the same issues occur with Ember 3.27.0) but we guessed it shouldn’t cause this particular issue. (Our apps are slowly migrating to Ember 4).

Let us know if we can give you more informations.

Thanks by advance!

0reactions
Jeyffreycommented, Aug 4, 2022

We added a trap-focus to a modal component with a modifier, and we wanted to test it. Here is the current branch https://github.com/1024pix/pix-ui/compare/dev...pix-5157-add-trap-focus.

Currently, in the project, the @ember/test-helpers version is 2.6.0, but I tried locally with the most recent one. So, after updating it, I tried to import the tab util, but I wasn’t able to do it. Whereas, I have no trouble with the tap one, for example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Alt-Tab Shortcut Not Working on Windows 10
We hope our guide and tips were able to help you resolve your issues with the Alt-Tab shortcut not working on Windows 10....
Read more >
Use tabs in Chrome - Computer - Google Support
Unpin a tab: Right-click the tab and select Unpin. Move a tab to a different window: Make sure both windows are signed in...
Read more >
Visual Studio Code Tab Key does not insert a tab
Keybinding for ⇥ Tab isn't set to anything so you have to do it manually · Navigate to Preferences/Environment/Keybindings and search for "tab"...
Read more >
Chromium Docs - Tab Helpers
Sometimes it's useful to re-use tab helpers for WebContents es that aren't browser tabs. For example, the Chrome Apps code wants to be...
Read more >
Internet Explorer Security Fix: Chrome + IE Tab
IE Tab gives you the ability to use the Internet Explorer rendering engine within a tab in Chrome so you do not have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found