I have an automation setup where I have my automation scripts integrated with GIT. When the new code is committed, the script will trigger automatically and run the regression.
Assume if the code change happens only in the login page and I need to validate that only not the entire automation scenario. If the module is integrated then I don't need this approach. But if the code change happens for the only individual model with the setup that I have, do I validate that change alone?
If yes, what is the advantage of validating that change alone instead of validating the entire scripts?