cucumber hook execution order in parallel is not working
I have written cucumber tests with selenium framework. When my test ran in sequential they all pass, but when I run in parallel they fail because the same user is used for all the tests and the test is to login to app, change the language and verify the language, logout and log back in to verify the language for that user is persistent.
The issue is each test is to verify different language. So, the test 1 runs and during logout and log back in the second test already running and it changed the language. due to that the test 1 fails as the language is not same. For that I read online that using hooks might help in running test scenarios sequentially in parallel test. I did implement the hooks but still they are not working. Not sure if I am doing this correct.