Added id for checkbox component for selenium tests
Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import org.eclipse.hawkbit.repository.model.TenantConfigurationValue;
|
|||||||
import org.eclipse.hawkbit.tenancy.configuration.TenantConfigurationKey;
|
import org.eclipse.hawkbit.tenancy.configuration.TenantConfigurationKey;
|
||||||
import org.eclipse.hawkbit.ui.components.SPUIComponentProvider;
|
import org.eclipse.hawkbit.ui.components.SPUIComponentProvider;
|
||||||
import org.eclipse.hawkbit.ui.utils.I18N;
|
import org.eclipse.hawkbit.ui.utils.I18N;
|
||||||
|
import org.eclipse.hawkbit.ui.utils.SPUIComponetIdProvider;
|
||||||
import org.eclipse.hawkbit.ui.utils.SPUILabelDefinitions;
|
import org.eclipse.hawkbit.ui.utils.SPUILabelDefinitions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
@@ -80,6 +81,8 @@ public class DownloadAnonymousConfigurationView extends BaseConfigurationView
|
|||||||
downloadAnonymousCheckBox = SPUIComponentProvider.getCheckBox("", DIST_CHECKBOX_STYLE, null, false, "");
|
downloadAnonymousCheckBox = SPUIComponentProvider.getCheckBox("", DIST_CHECKBOX_STYLE, null, false, "");
|
||||||
downloadAnonymousCheckBox.setValue(anonymousDownloadEnabled);
|
downloadAnonymousCheckBox.setValue(anonymousDownloadEnabled);
|
||||||
downloadAnonymousCheckBox.addValueChangeListener(event -> configurationHasChanged());
|
downloadAnonymousCheckBox.addValueChangeListener(event -> configurationHasChanged());
|
||||||
|
downloadAnonymousCheckBox.setId(SPUIComponetIdProvider.SYSTEM_CONFIGURATION_ANONYMOUS_DOWNLOAD_CHECKBOX);
|
||||||
|
|
||||||
gridLayout.addComponent(downloadAnonymousCheckBox);
|
gridLayout.addComponent(downloadAnonymousCheckBox);
|
||||||
|
|
||||||
final Label configurationLabel = SPUIComponentProvider.getLabel(i18n.get("enonymous.download.label"),
|
final Label configurationLabel = SPUIComponentProvider.getLabel(i18n.get("enonymous.download.label"),
|
||||||
|
|||||||
@@ -501,6 +501,11 @@ public final class SPUIComponetIdProvider {
|
|||||||
*/
|
*/
|
||||||
public static final String SYSTEM_CONFIGURATION_CANCEL = "system.configuration.cancel";
|
public static final String SYSTEM_CONFIGURATION_CANCEL = "system.configuration.cancel";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Id of the anonymous download checkbox.
|
||||||
|
*/
|
||||||
|
public static final String SYSTEM_CONFIGURATION_ANONYMOUS_DOWNLOAD_CHECKBOX = "system.configuration.anonymous.download.checkbox";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Id of maximize/minimize icon of table - Software module table.
|
* Id of maximize/minimize icon of table - Software module table.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user