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

Use chromium for karma tests #39

Merged
merged 4 commits into from
Feb 22, 2022
Merged

Conversation

theinterned
Copy link
Contributor

What am I trying to accomplish

Provide a Chromium binary for front-end projects to run karma tests with when running in Codespaces or other environments where chrome browser is not necessarily installed.

Part of https://github.com/github/web-systems/issues/162 (see that issue for more info)

What approach did I take?

I installed and configured the chromium npm package for use with karma tests.

@theinterned theinterned self-assigned this Jan 29, 2022
@theinterned
Copy link
Contributor Author

Note this one currently has a failing test when running in Codespaces with Chromium. Need to circle back to investigate ...

@@ -219,7 +219,7 @@ describe('combobox-nav', function() {

assert.equal(options[1].getAttribute('aria-selected'), 'true')
assert.equal(input.getAttribute('aria-activedescendant'), 'hubot')
assert.equal(list.scrollTop, 36)
assert.equal(list.scrollTop, options[1].offsetTop)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test was failing ... it seems that the height of the list items can vary by platform. This removes the magic number.

@theinterned theinterned marked this pull request as ready for review February 17, 2022 23:27
@theinterned theinterned requested review from koddsson, keithamus and a team February 17, 2022 23:27
@@ -3,7 +3,7 @@ name: Node CI
on:
pull_request:
branches:
- master
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI was not running! This fixes that 🎉

@theinterned theinterned merged commit a76615b into main Feb 22, 2022
@theinterned theinterned deleted the theinterned/install-chromium branch February 22, 2022 16:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants