For developers who become bored, this is a quick way to examine the functionalities they've implemented.
As part of a module development effort, I had to test every feature using both a simple and configurable product. It was not possible to repeat the procedure of choosing the alternatives, adding them to the cart, and checking out every time.
As a result, I developed a method to automate the arduous operation to add configurable products programmatically to the cart in Magento 2.
Find more here, https://meetanshi.com/blog/add-magento-2-configurable-products-to-cart/