From 73e679e6cda315d59a2d0f2dcde49337c2bbe577 Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Wed, 24 Jun 2026 11:29:53 +0200 Subject: [PATCH] chore: cleanup unused code --- playwright/test/UI5FixturesTestComponents.tsx | 89 ------------------- 1 file changed, 89 deletions(-) diff --git a/playwright/test/UI5FixturesTestComponents.tsx b/playwright/test/UI5FixturesTestComponents.tsx index f477b09df8d..aaee8aba120 100644 --- a/playwright/test/UI5FixturesTestComponents.tsx +++ b/playwright/test/UI5FixturesTestComponents.tsx @@ -1,24 +1,17 @@ import { Button } from '@ui5/webcomponents-react/Button'; -import { CheckBox } from '@ui5/webcomponents-react/CheckBox'; import { ComboBox } from '@ui5/webcomponents-react/ComboBox'; import { ComboBoxItem } from '@ui5/webcomponents-react/ComboBoxItem'; import { Dialog } from '@ui5/webcomponents-react/Dialog'; import { Input } from '@ui5/webcomponents-react/Input'; -import { List } from '@ui5/webcomponents-react/List'; -import { ListItemStandard } from '@ui5/webcomponents-react/ListItemStandard'; import { MultiComboBox } from '@ui5/webcomponents-react/MultiComboBox'; import { MultiComboBoxItem } from '@ui5/webcomponents-react/MultiComboBoxItem'; import { MultiInput } from '@ui5/webcomponents-react/MultiInput'; import { Option } from '@ui5/webcomponents-react/Option'; -import { RadioButton } from '@ui5/webcomponents-react/RadioButton'; import { Select } from '@ui5/webcomponents-react/Select'; import { SuggestionItem } from '@ui5/webcomponents-react/SuggestionItem'; -import { Switch } from '@ui5/webcomponents-react/Switch'; import { Tab } from '@ui5/webcomponents-react/Tab'; import { TabContainer } from '@ui5/webcomponents-react/TabContainer'; import { TextArea } from '@ui5/webcomponents-react/TextArea'; -import { Toolbar } from '@ui5/webcomponents-react/Toolbar'; -import { ToolbarButton } from '@ui5/webcomponents-react/ToolbarButton'; import { useState } from 'react'; export const InputTestComp = () => { @@ -41,37 +34,6 @@ export const ClearInputTestComp = () => { ); }; -export const CheckboxTestComp = () => { - const [checked, setChecked] = useState(false); - return ( -
- setChecked(e.target.checked)} /> - {checked ? 'checked' : 'unchecked'} -
- ); -}; - -export const SwitchTestComp = () => { - const [checked, setChecked] = useState(false); - return ( -
- setChecked(e.target.checked)} /> - {checked ? 'on' : 'off'} -
- ); -}; - -export const RadioButtonTestComp = () => { - const [selected, setSelected] = useState(''); - return ( -
- setSelected('option1')} /> - setSelected('option2')} /> - {selected} -
- ); -}; - export const TextAreaTestComp = () => { const [value, setValue] = useState(''); return ( @@ -98,29 +60,6 @@ export const AttributeTestComp = () => { return ; }; -export const ListTestComp = () => { - const [selectedItem, setSelectedItem] = useState(''); - return ( -
- { - const item = e.detail.selectedItems[0]; - if (item) { - setSelectedItem(item.getAttribute('text') || ''); - } - }} - > - - - - - {selectedItem} -
- ); -}; - export const SelectTestComp = () => { const [selectedValue, setSelectedValue] = useState(''); return ( @@ -169,20 +108,6 @@ export const MultiComboBoxTestComp = () => { ); }; -export const ToolbarTestComp = () => { - const [clickedButton, setClickedButton] = useState(''); - return ( -
- - setClickedButton('Save')} /> - setClickedButton('Edit')} /> - setClickedButton('Delete')} /> - - {clickedButton} -
- ); -}; - export const TabContainerTestComp = () => { const [selectedTab, setSelectedTab] = useState('Tab 1'); return ( @@ -216,20 +141,6 @@ export const TabContainerWithNestedTabsTestComp = () => { ); }; -export const InputWithDelayTestComp = () => { - const [value, setValue] = useState(''); - return ( -
- setValue(e.target.value || '')}> - - - - - {value} -
- ); -}; - export const InputWithSuggestionsTestComp = () => { return (