File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
src/shell/components/FieldTypeDateTime Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const CypressTestBlock = "Cypress Test Block";
6
6
const CypressTestVariant = "Cypress Test Variant" ;
7
7
8
8
describe ( "All Blocks Tests" , ( ) => {
9
- beforeEach ( ( ) => {
9
+ before ( ( ) => {
10
10
AllBlocksPage . visit ( ) ;
11
11
} ) ;
12
12
@@ -35,6 +35,7 @@ describe("All Blocks Tests", () => {
35
35
} ) ;
36
36
37
37
it ( "shows no results when no blocks are found" , ( ) => {
38
+ AllBlocksPage . searchBlocksInput . find ( "input" ) . clear ( ) ;
38
39
AllBlocksPage . searchBlocksInput . type ( "Non Existent Block" ) ;
39
40
cy . contains (
40
41
"Your search “Non Existent Block” could not find any results"
@@ -49,6 +50,8 @@ describe("All Blocks Tests", () => {
49
50
it ( "creates a variant" , ( ) => {
50
51
cy . contains ( CypressTestBlock ) . click ( ) ;
51
52
BlockPage . createVariant ( CypressTestVariant ) ;
52
- cy . contains ( `${ CypressTestBlock } : ${ CypressTestVariant } ` ) . should ( "exist" ) ;
53
+ cy . contains (
54
+ new RegExp ( `${ CypressTestBlock } :\\s*${ CypressTestVariant } ` )
55
+ ) . should ( "exist" ) ;
53
56
} ) ;
54
57
} ) ;
Original file line number Diff line number Diff line change @@ -294,16 +294,10 @@ export const FieldTypeDateTime = ({
294
294
autoHighlight
295
295
fullWidth
296
296
disableClearable
297
- size = "small"
298
297
options = { timezoneOptionsWithSuggestions }
299
298
value = { timezoneOptionsWithSuggestions . find (
300
299
( tz ) => tz . id === timezone
301
300
) }
302
- sx = { {
303
- "& .MuiAutocomplete-inputRoot" : {
304
- py : 0.75 ,
305
- } ,
306
- } }
307
301
renderInput = { ( params ) => < TextField { ...params } /> }
308
302
renderOption = { ( props , option ) => (
309
303
< ListItem
You can’t perform that action at this time.
0 commit comments