Automate a test that runs only if a custom condition is true using @EnabledIf
Preconditions (2)
Step 1: Create a test method annotated with @Test and @EnabledIf
Step 2: Implement a static method that returns a boolean for the condition
Step 3: Annotate the test method with @EnabledIf referencing the condition method
Step 4: Run the test suite
Step 5: Verify the test runs only if the condition method returns true
✅ Expected Result: The test method executes only when the custom condition method returns true; otherwise, it is skipped.