mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding ids for elements to use in e2e testing of SettingsPage.
This commit is contained in:
parent
4905235083
commit
4054df4560
2 changed files with 4 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ export function NavBar() {
|
|||
|
||||
return <>
|
||||
<Media at='mobile'>
|
||||
<Menu {...i} attached='top' color={navColor}>
|
||||
<Menu {...i} attached='top' color={navColor} id='global_navbar'>
|
||||
{homeLink}
|
||||
<Menu.Menu position='right'>
|
||||
{icons}
|
||||
|
|
@ -117,7 +117,7 @@ export function NavBar() {
|
|||
</Menu>
|
||||
</Media>
|
||||
<Media greaterThanOrEqual='tablet'>
|
||||
<Menu {...i} attached='top' color={navColor}>
|
||||
<Menu {...i} attached='top' color={navColor} id='global_navbar'>
|
||||
{homeLink}
|
||||
{links.map(i => <MenuLink link={i} key={i.key}/>)}
|
||||
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@ export function SettingsPage() {
|
|||
<ButtonGroup>
|
||||
<Button color={state.nav_color} onClick={e => e.preventDefault()}>Navbar Color</Button>
|
||||
<Dropdown
|
||||
id='settings_navbar_color_dropdown'
|
||||
className='button icon'
|
||||
floating
|
||||
options={navColorOptions}
|
||||
|
|
@ -466,6 +467,7 @@ export function SettingsPage() {
|
|||
<Divider/>
|
||||
|
||||
<APIButton
|
||||
id='settings_save_button'
|
||||
color='violet'
|
||||
size='big'
|
||||
onClick={() => localSaveSettings(state)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue