IntelliJBehave
IntelliJBehave copied to clipboard
Composite Steps not being found
JBehave has a feature called Composite Steps. I tried to use it but my IntelliJ Idea plugin shows my composite steps as not found. See the screenshot:
Here is the code (3 steps in the beginning are part of one composite step):
login.story
Scenario: Should be able to successfully register on website
Meta:
@scenario Registration
Given I am new to the website
Given I want to register for a user account
When I go to the registration form
And I complete all the required registration details correctly
Then I will be registered on the website
And I will be automatically logged in
LoginJbSteps.java
@Given("I am at the registration page")
@Composite(steps = {"Given I am new to the website",
"Given I want to register for a user account",
"When I go to the registration form"})
@net.thucydides.core.annotations.Pending
public void goToRegistrationPage() {
loginSrnSteps.openRegistrationPage();
}
Hi @vgarmash , feel free to contribute this change to the plugin as many contributers have stopped working on this plugin or don't have a lot of time. See the readme on how to setup the development environment.