Skip to content

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

Merged
chandlerprall merged 8 commits intoelastic:masterfrom
chandlerprall:feature/1807-data-test-subj-on-table-actions
Sep 24, 2019
Merged

Add data-test-subj support to non-custom table actions#2353
chandlerprall merged 8 commits intoelastic:masterfrom
chandlerprall:feature/1807-data-test-subj-on-table-actions

Conversation

@chandlerprall
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@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