Skip to content

Commit

Permalink
fix(coral): Harmonize toast copy (#1355)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Anderson <[email protected]>
  • Loading branch information
Mathieu Anderson authored Jun 14, 2023
1 parent b2be0a1 commit c944862
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ describe("<ConnectorRequest />", () => {
expect(createConnectorRequest).toHaveBeenCalledTimes(1);
await waitFor(() =>
expect(mockedUseToast).toHaveBeenCalledWith({
message: "Connector request successful!",
message: "Connector request successfully created",
position: "bottom-left",
variant: "default",
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function ConnectorRequest() {
onSuccess: () => {
navigate("/requests/connectors?status=CREATED");
toast({
message: "Connector request successful!",
message: "Connector request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ describe("<TopicAclRequest />", () => {
);
});
expect(mockedUseToast).toHaveBeenCalledWith({
message: "Acl request successful!",
message: "ACL request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down Expand Up @@ -1480,7 +1480,7 @@ describe("<TopicAclRequest />", () => {
);
});
expect(mockedUseToast).toHaveBeenCalledWith({
message: "Acl request successful!",
message: "ACL request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down Expand Up @@ -2525,7 +2525,7 @@ describe("<TopicAclRequest />", () => {
);
});
expect(mockedUseToast).toHaveBeenCalledWith({
message: "Acl request successful!",
message: "ACL request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down Expand Up @@ -2944,7 +2944,7 @@ describe("<TopicAclRequest />", () => {
);
});
expect(mockedUseToast).toHaveBeenCalledWith({
message: "Acl request successful!",
message: "ACL request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const TopicConsumerForm = ({
onSuccess: () => {
navigate("/requests/acls?status=CREATED");
toast({
message: "Acl request successful!",
message: "ACL request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const TopicProducerForm = ({
onSuccess: () => {
navigate("/requests/acls?status=CREATED");
toast({
message: "Acl request successful!",
message: "ACL request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function TopicSettings() {
onSuccess: () => {
navigate("/topics");
toast({
message: "Topic deletion request successfully sent",
message: "Topic deletion request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ describe("<TopicRequest />", () => {
});

expect(mockedUseToast).toHaveBeenCalledWith({
message: "Topic request successful!",
message: "Topic request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
2 changes: 1 addition & 1 deletion coral/src/app/features/topics/request/TopicRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function TopicRequest() {
onSuccess: () => {
navigate("/requests/topics?status=CREATED");
toast({
message: "Topic request successful!",
message: "Topic request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ describe("TopicSchemaRequest", () => {
expect(mockCreateSchemaRequest).toHaveBeenCalled();
await waitFor(() =>
expect(mockedUseToast).toHaveBeenCalledWith({
message: "Schema request successful!",
message: "Schema request successfully created",
position: "bottom-left",
variant: "default",
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function TopicSchemaRequest(props: TopicSchemaRequestProps) {
onSuccess: () => {
navigate("/requests/schemas?status=CREATED");
toast({
message: "Schema request successful!",
message: "Schema request successfully created",
position: "bottom-left",
variant: "default",
});
Expand Down

0 comments on commit c944862

Please sign in to comment.