Skip to content

Commit 3e0887b

Browse files
committed
Fix cypress
1 parent d102f16 commit 3e0887b

File tree

7 files changed

+34467
-19
lines changed

7 files changed

+34467
-19
lines changed

.eslintrc.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ module.exports = {
2828
alias: {
2929
map: [
3030
['@plone/volto', `${coreLocation}/packages/volto/src`],
31-
[
32-
'@plone/volto-slate',
33-
`${coreLocation}/core/packages/volto-slate/src`,
34-
],
31+
['@plone/volto-slate', `${coreLocation}/packages/volto-slate/src`],
3532
['@plone/registry', `${coreLocation}/packages/registry/src`],
3633
[
3734
'@kitconcept/volto-highlight-block',

cypress/tests/highlight.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getSlateEditorAndType } from '../support/slate';
1+
import { getSlateEditorAndType } from '@plone/volto/cypress/support/helpers';
22

33
context('Highlight Block Acceptance Tests', () => {
44
beforeEach(() => {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
"devDependencies": {
4141
"mrs-developer": "^2.2.0"
4242
},
43-
"packageManager": "pnpm@9.1.1"
43+
"packageManager": "pnpm@9.4.0"
4444
}
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,74 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: Plone\n"
4-
"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n"
4+
"POT-Creation-Date: 2024-07-03T10:57:48.456Z\n"
55
"Last-Translator: Plone i18n <[email protected]>\n"
66
"Language-Team: Plone i18n <[email protected]>\n"
7-
"MIME-Version: 1.0\n"
87
"Content-Type: text/plain; charset=utf-8\n"
98
"Content-Transfer-Encoding: 8bit\n"
109
"Plural-Forms: nplurals=1; plural=0;\n"
10+
"MIME-Version: 1.0\n"
1111
"Language-Code: en\n"
1212
"Language-Name: English\n"
1313
"Preferred-Encodings: utf-8\n"
1414
"Domain: volto\n"
15+
16+
#. Default: "Browse the site"
17+
#: components/ImageWidget/ImageWidget
18+
msgid "Browse the site"
19+
msgstr ""
20+
21+
#. Default: "Browse the site, drop an image, or type an URL"
22+
#: components/ImageWidget/ImageWidget
23+
msgid "Browse the site, drop an image, or type an URL"
24+
msgstr ""
25+
26+
#. Default: "Button"
27+
#: components/Blocks/Highlight/schema
28+
msgid "Button"
29+
msgstr ""
30+
31+
#. Default: "Description"
32+
#: components/Blocks/Highlight/schema
33+
msgid "Description"
34+
msgstr ""
35+
36+
#. Default: "Height"
37+
#: components/Blocks/Highlight/schema
38+
msgid "Height"
39+
msgstr ""
40+
41+
#. Default: "Image"
42+
#: components/Blocks/Highlight/schema
43+
msgid "Image"
44+
msgstr ""
45+
46+
#. Default: "Title"
47+
#: components/Blocks/Highlight/schema
48+
msgid "Title"
49+
msgstr ""
50+
51+
#. Default: "Width"
52+
#: components/Blocks/Highlight/schema
53+
msgid "Width"
54+
msgstr ""
55+
56+
#. Default: "Button Link"
57+
#: components/Blocks/Highlight/schema
58+
msgid "buttonLink"
59+
msgstr ""
60+
61+
#. Default: "Button Text"
62+
#: components/Blocks/Highlight/schema
63+
msgid "buttonText"
64+
msgstr ""
65+
66+
#. Default: "Description color"
67+
#: components/Blocks/Highlight/schema
68+
msgid "descriptionColor"
69+
msgstr ""
70+
71+
#. Default: "Highlight"
72+
#: components/Blocks/Highlight/schema
73+
msgid "highlightBlockTitle"
74+
msgstr ""

packages/volto-highlight-block/src/components/Blocks/Highlight/View.jsx

+2-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ import { useSelector } from 'react-redux';
1010
import config from '@plone/volto/registry';
1111

1212
const HighlightView = (props) => {
13-
const {
14-
block,
15-
blocksConfig,
16-
className,
17-
data,
18-
isEditMode,
19-
onChangeBlock,
20-
} = props;
13+
const { block, blocksConfig, className, data, isEditMode, onChangeBlock } =
14+
props;
2115

2216
const dataAdapter = blocksConfig.highlight.dataAdapter;
2317
const request = useSelector((state) => state.content.subrequests[block]);

packages/volto-highlight-block/src/theme/image-widget.scss

+5-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ $greySmoke: #e4e8ec !default;
2727
width: min(100%, 450px);
2828
height: 40px;
2929
padding: 4px;
30-
background-color: rgba(255, 255, 255, 0.975);
3130
border-radius: 2px;
32-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
31+
background-color: rgba(255, 255, 255, 0.975);
32+
box-shadow:
33+
0 0 8px rgba(0, 0, 0, 0.1),
34+
0 2px 4px rgba(0, 0, 0, 0.05);
3335

3436
.ui.form & .ui.input input[type='text'] {
3537
height: initial;
@@ -55,8 +57,8 @@ $greySmoke: #e4e8ec !default;
5557

5658
.ui.icon.button {
5759
padding: 4px;
58-
margin-left: -3px;
5960
border-radius: 1px;
61+
margin-left: -3px;
6062
color: $brown !important;
6163

6264
&:hover {

0 commit comments

Comments
 (0)