Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ describe("templateInheritance", () => {
expect(startTimeInput).toBeDisabled();

const timezoneInput = await screen.findByLabelText("Timezone");
// MUI's input is wrapped in a div so we look at the aria-attribute instead
expect(timezoneInput).toHaveAttribute("aria-disabled");
expect(timezoneInput).toBeDisabled();

for (const label of autoStartDayLabels) {
const checkbox = await screen.findByLabelText(label);
Expand Down Expand Up @@ -323,8 +322,7 @@ describe("templateInheritance", () => {
expect(startTimeInput).toBeEnabled();

const timezoneInput = await screen.findByLabelText("Timezone");
// MUI's input is wrapped in a div so we look at the aria-attribute instead
expect(timezoneInput).not.toHaveAttribute("aria-disabled");
expect(timezoneInput).toBeEnabled();

for (const label of enabledDayLabels) {
const checkbox = await screen.findByLabelText(label);
Expand Down Expand Up @@ -375,8 +373,7 @@ describe("templateInheritance", () => {
expect(startTimeInput).toBeDisabled();

const timezoneInput = await screen.findByLabelText("Timezone");
// MUI's input is wrapped in a div so we look at the aria-attribute instead
expect(timezoneInput).toHaveAttribute("aria-disabled");
expect(timezoneInput).toBeDisabled();

for (const label of autoStartDayLabels) {
const checkbox = await screen.findByLabelText(label);
Expand Down
Loading
Loading