My question is also related to who does what in typical BDD. My understanding, Product owner comes up with User Story (may or may not in Gherkin), QA writes Scenarios for End-to-End testing(in feature files), Dev writes his code (how and where, does he follow BDD as well?). At this point if the Dev writes the automated Unit Testing, whether this can be leveraged by the QA for End-to-End or they can be absolutely different?
My question is how the Dev and QA leverage each other's work in terms of coding while following BDD. I am not sure how to connect the dots.
Lets take the example of a JAVA based application and QA is already using Cucumber with Selenium Webdriver for automated testing.