The differences will be how step definitions are written, not the feature files.
The main benefit I see is that it provides type annotations, which allow the code to be extremely clean and understandable. Without these annotations, the code must have a lot of wrapping functions, which make the code harder to re-use. The documentation shows some examples worth looking at.
Experienced software developer with focus on Angular development. Proficient in Java, especially with Spring-Boot, and currently expanding my skills in .Net. Dedicated husband and father.
The differences will be how step definitions are written, not the feature files.
The main benefit I see is that it provides type annotations, which allow the code to be extremely clean and understandable. Without these annotations, the code must have a lot of wrapping functions, which make the code harder to re-use. The documentation shows some examples worth looking at.
Why this shows me error telling that declaration expected after @waitForSpinnerToEnd()
@then(/I wait for spinner to end/)
public static waitForSpinner() {
@waitForSpinnerToEnd()
}
export const waitForSpinnerToEnd = async () => {
await World.page.waitFor(200);
await World.page.waitFor(() => !document.querySelector('.spinner-three-bounce'), {visible: true});
};