Commit f543ff88 authored by Saturnino Abril's avatar Saturnino Abril

revert channel header IDs for selenium testing compatibility (#2160)

parent 91d57dc5
...@@ -24,6 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.AddMembers should match snaps ...@@ -24,6 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.AddMembers should match snaps
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelAddMembers"
modalId="channel_invite" modalId="channel_invite"
role="menuitem" role="menuitem"
> >
......
...@@ -20,6 +20,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ConvertChannel should match s ...@@ -20,6 +20,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ConvertChannel should match s
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelConvert"
modalId="convert_channel" modalId="convert_channel"
role="menuitem" role="menuitem"
> >
......
...@@ -14,6 +14,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.NotificationPreferences shoul ...@@ -14,6 +14,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.NotificationPreferences shoul
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelNotifications"
modalId="channel_notifications" modalId="channel_notifications"
role="menuitem" role="menuitem"
> >
......
...@@ -24,6 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.RenameChannel should match sn ...@@ -24,6 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.RenameChannel should match sn
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelRename"
modalId="rename_channel" modalId="rename_channel"
role="menuitem" role="menuitem"
> >
......
...@@ -24,7 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.SetChannelHeader should match ...@@ -24,7 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.SetChannelHeader should match
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="editChannelHeader" id="channelEditHeader"
modalId="edit_channel_header" modalId="edit_channel_header"
role="menuitem" role="menuitem"
> >
......
...@@ -24,6 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.SetChannelPurpose should matc ...@@ -24,6 +24,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.SetChannelPurpose should matc
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelEditPurpose"
modalId="edit_channel_purpose" modalId="edit_channel_purpose"
role="menuitem" role="menuitem"
> >
......
...@@ -13,6 +13,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ViewAndManageMembers should m ...@@ -13,6 +13,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ViewAndManageMembers should m
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelManageMembers"
modalId="channel_members" modalId="channel_members"
role="menuitem" role="menuitem"
> >
...@@ -60,6 +61,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ViewAndManageMembers should m ...@@ -60,6 +61,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ViewAndManageMembers should m
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelManageMembers"
modalId="channel_members" modalId="channel_members"
role="menuitem" role="menuitem"
> >
......
...@@ -13,6 +13,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ViewChannelInfo should match ...@@ -13,6 +13,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ViewChannelInfo should match
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelViewInfo"
modalId="channel_info" modalId="channel_info"
role="menuitem" role="menuitem"
> >
......
...@@ -39,6 +39,7 @@ const AddMembers = ({channel, isDefault, isArchived}) => { ...@@ -39,6 +39,7 @@ const AddMembers = ({channel, isDefault, isArchived}) => {
> >
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelAddMembers'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.CHANNEL_INVITE} modalId={ModalIdentifiers.CHANNEL_INVITE}
dialogType={ChannelInviteModal} dialogType={ChannelInviteModal}
......
...@@ -6,6 +6,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.CloseChannel should match sna ...@@ -6,6 +6,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.CloseChannel should match sna
> >
<button <button
className="style--none" className="style--none"
id="channelClose"
onClick={[Function]} onClick={[Function]}
role="menuitem" role="menuitem"
> >
......
...@@ -25,6 +25,7 @@ export default class CloseChannel extends React.PureComponent { ...@@ -25,6 +25,7 @@ export default class CloseChannel extends React.PureComponent {
return ( return (
<li role='presentation'> <li role='presentation'>
<button <button
id='channelClose'
className='style--none' className='style--none'
role='menuitem' role='menuitem'
onClick={this.handleClose} onClick={this.handleClose}
......
...@@ -28,6 +28,7 @@ const ConvertChannel = ({channel, isDefault, isArchived}) => { ...@@ -28,6 +28,7 @@ const ConvertChannel = ({channel, isDefault, isArchived}) => {
> >
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelConvert'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.CONVERT_CHANNEL} modalId={ModalIdentifiers.CONVERT_CHANNEL}
dialogType={ConvertChannelModal} dialogType={ConvertChannelModal}
......
...@@ -25,6 +25,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.DeleteChannel should match sn ...@@ -25,6 +25,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.DeleteChannel should match sn
} }
} }
dialogType={[Function]} dialogType={[Function]}
id="channelDelete"
modalId="delete_channel" modalId="delete_channel"
role="menuitem" role="menuitem"
> >
......
...@@ -35,6 +35,7 @@ const DeleteChannel = ({channel, isDefault, isArchived, penultimateViewedChannel ...@@ -35,6 +35,7 @@ const DeleteChannel = ({channel, isDefault, isArchived, penultimateViewedChannel
> >
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelDelete'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.DELETE_CHANNEL} modalId={ModalIdentifiers.DELETE_CHANNEL}
dialogType={DeleteChannelModal} dialogType={DeleteChannelModal}
......
...@@ -6,6 +6,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.LeaveChannel should match sna ...@@ -6,6 +6,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.LeaveChannel should match sna
> >
<button <button
className="style--none" className="style--none"
id="channelLeave"
onClick={[Function]} onClick={[Function]}
role="menuitem" role="menuitem"
> >
......
...@@ -68,6 +68,7 @@ export default class LeaveChannel extends React.PureComponent { ...@@ -68,6 +68,7 @@ export default class LeaveChannel extends React.PureComponent {
return ( return (
<li role='presentation'> <li role='presentation'>
<button <button
id='channelLeave'
role='menuitem' role='menuitem'
className='style--none' className='style--none'
onClick={this.handleLeave} onClick={this.handleLeave}
......
...@@ -23,6 +23,7 @@ const NotificationPreferences = ({user, channel, isArchived}) => { ...@@ -23,6 +23,7 @@ const NotificationPreferences = ({user, channel, isArchived}) => {
return ( return (
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelNotifications'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.CHANNEL_NOTIFICATIONS} modalId={ModalIdentifiers.CHANNEL_NOTIFICATIONS}
dialogType={ChannelNotificationsModal} dialogType={ChannelNotificationsModal}
......
...@@ -35,6 +35,7 @@ const RenameChannel = ({channel, isArchived}) => { ...@@ -35,6 +35,7 @@ const RenameChannel = ({channel, isArchived}) => {
> >
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelRename'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.RENAME_CHANNEL} modalId={ModalIdentifiers.RENAME_CHANNEL}
dialogType={RenameChannelModal} dialogType={RenameChannelModal}
......
...@@ -31,7 +31,7 @@ const SetChannelHeader = ({channel, isArchived, isReadonly}) => { ...@@ -31,7 +31,7 @@ const SetChannelHeader = ({channel, isArchived, isReadonly}) => {
> >
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='editChannelHeader' id='channelEditHeader'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.EDIT_CHANNEL_HEADER} modalId={ModalIdentifiers.EDIT_CHANNEL_HEADER}
dialogType={EditChannelHeaderModal} dialogType={EditChannelHeaderModal}
......
...@@ -39,6 +39,7 @@ const SetChannelPurpose = ({channel, isArchived, isReadonly}) => { ...@@ -39,6 +39,7 @@ const SetChannelPurpose = ({channel, isArchived, isReadonly}) => {
> >
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelEditPurpose'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.EDIT_CHANNEL_PURPOSE} modalId={ModalIdentifiers.EDIT_CHANNEL_PURPOSE}
dialogType={EditChannelPurposeModal} dialogType={EditChannelPurposeModal}
......
...@@ -6,6 +6,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ToggleMuteChannel should matc ...@@ -6,6 +6,7 @@ exports[`components/ChannelHeaderDropdown/MenuItem.ToggleMuteChannel should matc
> >
<button <button
className="style--none" className="style--none"
id="channelMute"
onClick={[Function]} onClick={[Function]}
role="menuitem" role="menuitem"
> >
......
...@@ -73,6 +73,7 @@ export default class ToggleMuteChannel extends React.PureComponent { ...@@ -73,6 +73,7 @@ export default class ToggleMuteChannel extends React.PureComponent {
return ( return (
<li role='presentation'> <li role='presentation'>
<button <button
id='channelMute'
className='style--none' className='style--none'
role='menuitem' role='menuitem'
onClick={this.handleClick} onClick={this.handleClick}
......
...@@ -27,6 +27,7 @@ const ViewAndManageMembers = ({channel, isDefault}) => { ...@@ -27,6 +27,7 @@ const ViewAndManageMembers = ({channel, isDefault}) => {
return ( return (
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id={'channelManageMembers'}
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.CHANNEL_MEMBERS} modalId={ModalIdentifiers.CHANNEL_MEMBERS}
dialogType={ChannelMembersModal} dialogType={ChannelMembersModal}
......
...@@ -22,6 +22,7 @@ const ViewChannelInfo = ({channel}) => { ...@@ -22,6 +22,7 @@ const ViewChannelInfo = ({channel}) => {
return ( return (
<li role='presentation'> <li role='presentation'>
<ToggleModalButtonRedux <ToggleModalButtonRedux
id='channelViewInfo'
role='menuitem' role='menuitem'
modalId={ModalIdentifiers.CHANNEL_INFO} modalId={ModalIdentifiers.CHANNEL_INFO}
dialogType={ChannelInfoModal} dialogType={ChannelInfoModal}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment