Skip to content

Commit

Permalink
#[2781] Content: Schedule Modal Time Zone Dropdown Height Bug (#3105)
Browse files Browse the repository at this point in the history
  • Loading branch information
geodem127 authored Dec 23, 2024
1 parent 8ff7a03 commit f79ad63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 5 additions & 2 deletions cypress/e2e/blocks/tests/blocks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CypressTestBlock = "Cypress Test Block";
const CypressTestVariant = "Cypress Test Variant";

describe("All Blocks Tests", () => {
beforeEach(() => {
before(() => {
AllBlocksPage.visit();
});

Expand Down Expand Up @@ -35,6 +35,7 @@ describe("All Blocks Tests", () => {
});

it("shows no results when no blocks are found", () => {
AllBlocksPage.searchBlocksInput.find("input").clear();
AllBlocksPage.searchBlocksInput.type("Non Existent Block");
cy.contains(
"Your search “Non Existent Block” could not find any results"
Expand All @@ -49,6 +50,8 @@ describe("All Blocks Tests", () => {
it("creates a variant", () => {
cy.contains(CypressTestBlock).click();
BlockPage.createVariant(CypressTestVariant);
cy.contains(`${CypressTestBlock}: ${CypressTestVariant}`).should("exist");
cy.contains(
new RegExp(`${CypressTestBlock}:\\s*${CypressTestVariant}`)
).should("exist");
});
});
6 changes: 0 additions & 6 deletions src/shell/components/FieldTypeDateTime/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,16 +294,10 @@ export const FieldTypeDateTime = ({
autoHighlight
fullWidth
disableClearable
size="small"
options={timezoneOptionsWithSuggestions}
value={timezoneOptionsWithSuggestions.find(
(tz) => tz.id === timezone
)}
sx={{
"& .MuiAutocomplete-inputRoot": {
py: 0.75,
},
}}
renderInput={(params) => <TextField {...params} />}
renderOption={(props, option) => (
<ListItem
Expand Down

0 comments on commit f79ad63

Please sign in to comment.