chore: update twake-mui dependency and use radius.lg for create event button
This commit is contained in:
@@ -443,11 +443,14 @@ describe("calendar Availability search", () => {
|
||||
screen.getByRole("button", { name: "event.createEvent" })
|
||||
);
|
||||
});
|
||||
await waitFor(() => {
|
||||
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
||||
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
||||
});
|
||||
});
|
||||
await waitFor(
|
||||
() => {
|
||||
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
||||
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
||||
},
|
||||
{ timeout: 10000 }
|
||||
);
|
||||
}, 15000);
|
||||
|
||||
it("open window with attendees filled after temp search on enter in temp input", async () => {
|
||||
const spy = jest
|
||||
@@ -482,11 +485,14 @@ describe("calendar Availability search", () => {
|
||||
fireEvent.keyDown(input, { key: "Enter" });
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
||||
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
||||
});
|
||||
});
|
||||
await waitFor(
|
||||
() => {
|
||||
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
||||
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
||||
},
|
||||
{ timeout: 10000 }
|
||||
);
|
||||
}, 15000);
|
||||
|
||||
it("BUGFIX: can untoggle all calendar.personal", async () => {
|
||||
await act(async () =>
|
||||
|
||||
@@ -199,6 +199,8 @@ describe("RepeatEvent Component", () => {
|
||||
});
|
||||
|
||||
describe("Repeat Event Integration Tests", () => {
|
||||
// Increase timeout for all tests in this describe block
|
||||
jest.setTimeout(30000);
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
jest.restoreAllMocks();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { fireEvent, render, screen } from "@testing-library/react";
|
||||
import React from "react";
|
||||
import { ResponsiveDialog } from "../../src/components/Dialog";
|
||||
import { Button, TextField } from "twake-mui";
|
||||
import { TwakeMuiThemeProvider } from "twake-mui";
|
||||
import { Button, TextField } from "@linagora/twake-mui";
|
||||
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||
|
||||
describe("ResponsiveDialog", () => {
|
||||
const mockOnClose = jest.fn();
|
||||
|
||||
@@ -296,7 +296,7 @@ describe("EventPreviewModal - Recurring Event Interactions", () => {
|
||||
|
||||
await waitFor(() => {
|
||||
expect(
|
||||
screen.getByText("editModeDialog.updateRecurrentEvent")
|
||||
screen.getByText("editModeDialog.deleteRecurrentEvent")
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
@@ -381,7 +381,7 @@ describe("EventPreviewModal - Recurring Event Interactions", () => {
|
||||
});
|
||||
|
||||
expect(
|
||||
screen.queryByText("editModeDialog.updateRecurrentEvent")
|
||||
screen.queryByText("editModeDialog.deleteRecurrentEvent")
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
@@ -416,7 +416,7 @@ describe("Delete Recurring Event Instance", () => {
|
||||
|
||||
await waitFor(() => {
|
||||
expect(
|
||||
screen.getByText("editModeDialog.updateRecurrentEvent")
|
||||
screen.getByText("editModeDialog.deleteRecurrentEvent")
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -463,7 +463,7 @@ describe("Delete Recurring Event Instance", () => {
|
||||
|
||||
await waitFor(() => {
|
||||
expect(
|
||||
screen.getByText("editModeDialog.updateRecurrentEvent")
|
||||
screen.getByText("editModeDialog.deleteRecurrentEvent")
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, { PropsWithChildren } from "react";
|
||||
import { Provider } from "react-redux";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import { I18nContext } from "twake-i18n";
|
||||
import { TwakeMuiThemeProvider } from "twake-mui";
|
||||
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||
import type { AppStore, RootState } from "../../src/app/store";
|
||||
import { setupStore } from "../../src/app/store";
|
||||
interface ExtendedRenderOptions extends Omit<RenderOptions, "queries"> {
|
||||
|
||||
Reference in New Issue
Block a user