-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug in the ActionBar more menu items not including button type (…
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@primer/view-components': patch | ||
--- | ||
|
||
Fixing ActionBar more menu items including buttons with no type | ||
|
||
<!-- Changed components: Primer::Alpha::ActionBar --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
require "components/test_helper" | ||
|
||
module Primer | ||
module Alpha | ||
class ActionBarTest < Minitest::Test | ||
include Primer::ComponentTestHelpers | ||
|
||
def test_renders_action_menu_items_with_type_button | ||
render_preview(:default) | ||
|
||
assert_selector("action-menu[data-target=\"action-bar.moreMenu\"]", visible: :hidden) do | ||
assert_selector("button[type=\"button\"]") | ||
end | ||
end | ||
end | ||
end | ||
end |