Preheat your oven to 350°F (175°C). Place a rack in the center so the casserole heats evenly. Set out a 1 1/2-quart (1.4 L) oven-safe casserole dish while the oven preheats, about 10 minutes. The oven is ready when it reaches the set temperature.
Open the 2 cans (14.5 oz or 411 g each) of cut green beans and pour them into a colander. Let them drain for 1–2 minutes, gently shaking the colander to release excess liquid. The beans should look moist but should not have liquid pooling beneath them.
In a medium mixing bowl, combine 1 can (10.5 oz or 298 g) of condensed cream of mushroom soup, 1/2 cup (120 ml) whole milk, 1 teaspoon (5 ml) soy sauce, and 1/8 teaspoon (about 0.25 g) ground black pepper. Stir for 1–2 minutes until the mixture is smooth and evenly blended. The sauce should be thick but easy to stir, with no large lumps of condensed soup.
Add the drained green beans and 2/3 cup (about 40 g) crispy fried onions to the mushroom sauce. Gently fold everything together for about 1 minute until the beans are evenly coated. Transfer the mixture to the 1 1/2-quart (1.4 L) casserole dish and spread it into an even layer. The sauce should surround the beans without collecting as a separate watery layer.
Place the casserole dish on the center rack of the preheated 350°F (175°C) oven. Bake uncovered for 25 minutes, until the mushroom sauce is bubbling gently around the edges and the center is thoroughly heated. The casserole should look creamy and slightly thicker than it did before baking.
Carefully remove the casserole from the oven: Gently stir the hot green bean mixture to distribute the sauce evenly, then sprinkle the remaining 2/3 cup (about 40 g) crispy fried onions across the surface. Spread them evenly so most of the filling is covered. This step should take about 1 minute, and the topping should still look dry and crisp.
Return the uncovered casserole to the 350°F (175°C) oven and bake for another 5 minutes, until the onions turn golden brown and the sauce continues bubbling around the edges. Watch the topping closely near the end because crispy onions can darken quickly. Remove the casserole when the onions are golden rather than deep brown.
Remove the casserole from the oven and let it rest for 5 minutes before serving. The sauce will settle slightly as it stands, making the casserole easier to spoon onto plates. The finished dish should have tender green beans, a creamy mushroom coating, and a crisp golden onion topping.