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

Add data-test-subj support to non-custom table actions #2353

Conversation

chandlerprall
Copy link
Contributor

@chandlerprall chandlerprall commented Sep 19, 2019

Summary

Closes #1807

I added a data-test-subj to the collapsed actions button and allowed properties on default action types (non-custom actions can already specify the data-test-subj however they'd like). The Adding actions to BasicTable doc section was updated to include data-test-subjs and can be used to verify they are applied to the DOM in the three non-custom action locations:

  • single action
  • multiple actions, not in popover
  • multiple actions, in popover

/cc @lizozom @pheyos

Checklist

- [ ] Checked in dark mode
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox

  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
    - [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

It works for me. Just had one suggestion around the naming of an EUI dts.

src/components/basic_table/collapsed_item_actions.js Outdated Show resolved Hide resolved
@chandlerprall chandlerprall merged commit 24b9b12 into elastic:master Sep 24, 2019
@chandlerprall chandlerprall deleted the feature/1807-data-test-subj-on-table-actions branch September 24, 2019 16:14
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.

Support adding data-test-subj to Eui Table \ InMemoryTable actions
3 participants