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 @@ -51,7 +51,9 @@ describe("TriggerOrderModal", () => {
});

await waitFor(() => {
expect(screen.getByText("Soul Warden")).toBeInTheDocument();
const triggers = screen.getAllByRole("listitem");
expect(triggers[0]).toHaveTextContent("Soul Warden");
expect(triggers[1]).toHaveTextContent("Ajani's Pridemate");
});

fireEvent.click(screen.getByRole("button", { name: "Confirm Order" }));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ describe("AI proposal controller", () => {
await runOnce();
await runOnce();

expect(getAiActionProposal).toHaveBeenCalledTimes(3);
expect(getAiActionProposal).toHaveBeenCalledWith("Medium", 1);
expect(getAiActionProposal.mock.calls.length).toBeGreaterThanOrEqual(2);
expect(dispatchAiActionProposal).toHaveBeenCalledTimes(1);
expect(notifyEngineLost).not.toHaveBeenCalled();
expect(dispatchAiActionProposal).toHaveBeenCalledWith(issued);
Expand Down
2 changes: 2 additions & 0 deletions crates/engine/src/ai_support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod context;
mod copy;
pub mod filter;
mod payment_continuation;
mod targeted_exchange;

use std::collections::{HashMap, HashSet};

Expand Down Expand Up @@ -54,6 +55,7 @@ pub use payment_continuation::{
PaymentContinuationRoot, PaymentContinuationState, PaymentContinuationUnsupported,
PAYMENT_CONTINUATION_MAX_REDUCER_ATTEMPTS,
};
pub use targeted_exchange::{targeted_exchange_verdict, TargetedExchangeVerdict};

/// Filter `candidate_actions` down to the actions that are actually legal now.
///
Expand Down
Loading
Loading