Skip to content

Commit f79ad63

Browse files
authored
#[2781] Content: Schedule Modal Time Zone Dropdown Height Bug (#3105)
1 parent 8ff7a03 commit f79ad63

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

cypress/e2e/blocks/tests/blocks.spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const CypressTestBlock = "Cypress Test Block";
66
const CypressTestVariant = "Cypress Test Variant";
77

88
describe("All Blocks Tests", () => {
9-
beforeEach(() => {
9+
before(() => {
1010
AllBlocksPage.visit();
1111
});
1212

@@ -35,6 +35,7 @@ describe("All Blocks Tests", () => {
3535
});
3636

3737
it("shows no results when no blocks are found", () => {
38+
AllBlocksPage.searchBlocksInput.find("input").clear();
3839
AllBlocksPage.searchBlocksInput.type("Non Existent Block");
3940
cy.contains(
4041
"Your search “Non Existent Block” could not find any results"
@@ -49,6 +50,8 @@ describe("All Blocks Tests", () => {
4950
it("creates a variant", () => {
5051
cy.contains(CypressTestBlock).click();
5152
BlockPage.createVariant(CypressTestVariant);
52-
cy.contains(`${CypressTestBlock}: ${CypressTestVariant}`).should("exist");
53+
cy.contains(
54+
new RegExp(`${CypressTestBlock}:\\s*${CypressTestVariant}`)
55+
).should("exist");
5356
});
5457
});

src/shell/components/FieldTypeDateTime/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,10 @@ export const FieldTypeDateTime = ({
294294
autoHighlight
295295
fullWidth
296296
disableClearable
297-
size="small"
298297
options={timezoneOptionsWithSuggestions}
299298
value={timezoneOptionsWithSuggestions.find(
300299
(tz) => tz.id === timezone
301300
)}
302-
sx={{
303-
"& .MuiAutocomplete-inputRoot": {
304-
py: 0.75,
305-
},
306-
}}
307301
renderInput={(params) => <TextField {...params} />}
308302
renderOption={(props, option) => (
309303
<ListItem

0 commit comments

Comments
 (0)