Skip to content

Commit

Permalink
fix: update test ids (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekzyla authored Aug 7, 2023
1 parent 8522242 commit 68d32a5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions frontend/packages/manager/src/components/groups/GroupsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,21 @@ function GroupsList() {
<GroupsNamesHeader>
<P>Group name</P>
<div>
<Button onClick={handleRequestOpenGroups} appearance="pill" icon={<Plus />} />
<Button data-test="sc4snmp:add-new-group-button" onClick={handleRequestOpenGroups} appearance="pill" icon={<Plus />} />
</div>
</GroupsNamesHeader>
{groupsList}
</GroupsNames>
<GroupDevices>
<div style={{width: '100%' }}>
<Pagination>
<Select appearance="pill" suffixLabel="inventory items per page"
<Select data-test="sc4snmp:group-pagination" appearance="pill" suffixLabel="group items per page"
value={devicesPerPage} onChange={devicesPerPageHandler}
defaultValue="20">
<Select.Option label="10" value="10" />
<Select.Option label="20" value="20" />
<Select.Option label="50" value="50" />
<Select.Option label="100" value="100" />
<Select.Option data-test="sc4snmp:group-pagination-10" label="10" value="10" />
<Select.Option data-test="sc4snmp:group-pagination-20" label="20" value="20" />
<Select.Option data-test="sc4snmp:group-pagination-50" label="50" value="50" />
<Select.Option data-test="sc4snmp:group-pagination-100" label="100" value="100" />
</Select>
<Paginator
onChange={(event, { page }) => (paginationHandler(page, openedGroupId))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ function InventoryList() {
return (
<div style={{width: '100%' }}>
<Pagination>
<Select appearance="pill" suffixLabel="inventory items per page"
<Select data-test="sc4snmp:inventory-pagination" appearance="pill" suffixLabel="inventory items per page"
value={devicesPerPage} onChange={handleDevicesPerPage}
defaultValue="20">
<Select.Option label="10" value="10" />
<Select.Option label="20" value="20" />
<Select.Option label="50" value="50" />
<Select.Option label="100" value="100" />
<Select.Option data-test="sc4snmp:inventory-pagination-10" label="10" value="10" />
<Select.Option data-test="sc4snmp:inventory-pagination-20" label="20" value="20" />
<Select.Option data-test="sc4snmp:inventory-pagination-50" label="50" value="50" />
<Select.Option data-test="sc4snmp:inventory-pagination-100" label="100" value="100" />
</Select>
<Paginator
onChange={handlePagination}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Menu(){
<StyledTab activeTabId={MenuCtx.activeTabId} onChange={handleMenuChange}>
<TabBar.Tab data-test="sc4snmp:profiles-tab" label="Profiles" tabId="Profiles" />
<TabBar.Tab data-test="sc4snmp:groups-tab" label="Groups" tabId="Groups" />
<TabBar.Tab data-test="sc4snmp:groups-tab" label="Inventory" tabId="Inventory" />
<TabBar.Tab data-test="sc4snmp:inventory-tab" label="Inventory" tabId="Inventory" />
</StyledTab>
</StyledMenuBarLeft>
<StyledMenuBarRight>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ function ProfilesList() {
return (
<div style={{width: '100%' }}>
<Pagination>
<Select appearance="pill" suffixLabel="profiles per page"
<Select data-test="sc4snmp:profiles-pagination" appearance="pill" suffixLabel="profiles per page"
value={profilesPerPage} onChange={profilesPerPageHandler}
defaultValue="20">
<Select.Option label="10" value="10" />
<Select.Option label="20" value="20" />
<Select.Option label="50" value="50" />
<Select.Option label="100" value="100" />
<Select.Option data-test="sc4snmp:profiles-pagination-10" label="10" value="10" />
<Select.Option data-test="sc4snmp:profiles-pagination-20" label="20" value="20" />
<Select.Option data-test="sc4snmp:profiles-pagination-50" label="50" value="50" />
<Select.Option data-test="sc4snmp:profiles-pagination-100" label="100" value="100" />
</Select>
<Paginator
onChange={(event, { page }) => (paginationHandler(page))}
Expand Down

0 comments on commit 68d32a5

Please sign in to comment.