You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement an inheritance/override model where I want to have a 'generic' step definition which will be imported in and specific steps overridden as necessary.
I was able to import the step definitions from my generic file, but the override (I used the same step definition name) seems to not be overriding the step definitions.
ex:
Generic file
Given('User navigates to x page', async () => {
await pAPage.navigateTo('x')
});
Specific/inherited file
Given('User navigates to x page', async () => {
await pAPage.navigateTo('y')
});
PS: Our software has a number of applications that are all similar but vary (differently) a bit from the base configuration based on the client. Having to define the common steps multiple times will create a maintenance nightmare. Hence we want to group the common step definitions in the generic file and import/override by client as needed.
Appreciate all the help in advance.
The text was updated successfully, but these errors were encountered:
I am trying to implement an inheritance/override model where I want to have a 'generic' step definition which will be imported in and specific steps overridden as necessary.
I was able to import the step definitions from my generic file, but the override (I used the same step definition name) seems to not be overriding the step definitions.
ex:
Generic file
Specific/inherited file
PS: Our software has a number of applications that are all similar but vary (differently) a bit from the base configuration based on the client. Having to define the common steps multiple times will create a maintenance nightmare. Hence we want to group the common step definitions in the generic file and import/override by client as needed.
Appreciate all the help in advance.
The text was updated successfully, but these errors were encountered: