UPDATED:
I've encountered an issue with my cucumber test scenario:
Given I set some value
Then I print it
Here is the related code from two different classes:
export class XXX {
searchedValue: string;
@given("I set some value")
public async getInfoData(){
this.searchedValue = await getData.getPlayersId();
}
}
And another class:
export class YYY {
const xxx = new XXX();
@then("I print it")
public async showData(){
console.log( await xxx.searchedValue)
}
}
When running the I print it
step, it returns undefined
instead of passing the expected value. Any assistance would be greatly appreciated.