Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test revert jar #3364

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import ClayAlert from '@clayui/alert';
import {TreeView as ClayTreeView} from '@clayui/core';
import ClayIcon from '@clayui/icon';
import classNames from 'classnames';
import React, {useCallback, useEffect, useMemo, useState} from 'react';

Expand Down Expand Up @@ -306,10 +305,6 @@ export default function StructureTreeContent({expandedKeys, setExpandedKeys}) {
displayType="light"
expandDoubleClick={false}
expandedKeys={new Set(expandedKeys)}
expanderIcons={{
close: <ClayIcon symbol="hr" />,
open: <ClayIcon symbol="plus" />,
}}
items={nodes}
onExpandedChange={(expandedNodes) => {
setExpandedKeys(Array.from(expandedNodes));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ function StructureTreeNodeContent({
'drag-over-top':
isValidDrop && dropTargetPosition === TARGET_POSITIONS.TOP,
'dragged': isDraggingSource,
'font-weight-semi-bold':
node.activable && node.itemType !== ITEM_TYPES.editable,
})}
ref={targetRef}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import 'cadmin-variables';

$treeNodeNameMappedColor: #954cff;
$treeNodeNameMappedColor: #8633ff;

html#{$cadmin-selector} {
.cadmin {
Expand All @@ -23,7 +23,7 @@ html#{$cadmin-selector} {

&--active.treeview-link:not(:focus) {
box-shadow: inset 0 0 0 1px $cadmin-primary-l1;
font-weight: 600;
color: $gray-800;
}

&--hovered.treeview-link,
Expand All @@ -48,7 +48,6 @@ html#{$cadmin-selector} {

.page-editor__page-structure__tree-node__actions-button,
.page-editor__page-structure__tree-node__visibility-button {
color: $cadmin-secondary;
visibility: hidden;

&--visible {
Expand All @@ -61,9 +60,7 @@ html#{$cadmin-selector} {
.page-editor__page-structure__tree-node {
align-items: center;
display: flex;
font-size: 12px;
justify-content: space-between;
padding: 6px 8px;
position: relative;
white-space: nowrap;

Expand Down Expand Up @@ -112,7 +109,6 @@ html#{$cadmin-selector} {
}

&__name {
color: $cadmin-dark;
margin-left: 4px;

input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -939,95 +939,4 @@ definition {
}
}

@description = "This is a test for LPS-122142. View the visual style of mapped editable field items in Selection panel of content page."
@priority = 4
test ViewVisualStyleOfMappedEditableFieldItems {
task ("Add a web content with basic web content") {
JSONWebcontent.addWebContent(
content = "Web Content Content",
groupName = ${randomSiteName},
title = "Web Content Title");
}

task ("Add a Button fragment to page") {
ContentPagesNavigator.openEditContentPage(
pageName = "Test Page Name",
siteName = ${randomSiteName});

PageEditor.addFragment(
collectionName = "Basic Components",
fragmentName = "Button");
}

task ("Map the Content field of web content to editable field") {
PageEditorMapping.gotoEditableFieldMapping(
fragmentName = "Button",
id = "link");

PageEditorMapping.mapEditableFieldToAsset(
entryTitle = "Web Content Title",
navItem = "Web Content");

WaitForEditable(locator1 = "PageEditorEditableLink#FIELD");

Select(
key_fieldLabel = "Field",
locator1 = "Select#GENERIC_SELECT_FIELD",
value1 = "Content");

PageEditor.waitForAutoSave();
}

task ("View the visual style of Content item in Selection panel") {
AssertCssValue(
key_nodeName = "Content",
locator1 = "Treeview#PAGE_STRUCTURE_TREE_NODE_NAME",
locator2 = "color",
value1 = "rgba(149, 76, 255, 1)");
}

task ("Add a Collection Display fragment to page") {
PageEditor.addFragment(
collectionName = "Content Display",
fragmentName = "Collection Display",
targetFragmentName = "Button");
}

task ("Select the Highest Rated Assets in Collection Display") {
PageEditor.editCollectionDisplay(
fragmentName = "Collection Display",
infoListProviderName = "Highest Rated Assets");
}

task ("Add a Heading fragment into Collection Display") {
PageEditor.addFragmentToCollectionDisplay(
collectionName = "Basic Components",
entryTitle = "Web Content Title",
fragmentName = "Heading");
}

task ("Map the Title field to editable field") {
PageEditorMapping.gotoEditableFieldMapping(
fragmentName = "Heading",
id = "element-text");

WaitForEditable(locator1 = "PageEditorEditableLink#FIELD");

Select(
key_fieldLabel = "Field",
locator1 = "Select#GENERIC_SELECT_FIELD",
value1 = "Title");

PageEditor.waitForAutoSave();
}

task ("View the visual style of Title item in Selection panel") {
AssertCssValue(
key_nodeName = "Title",
locator1 = "Treeview#PAGE_STRUCTURE_TREE_NODE_NAME",
locator2 = "color",
value1 = "rgba(149, 76, 255, 1)");
}
}

}