Tag not targeted when page object is used with before hook #3291
Unanswered
olukunleEcosia
asked this question in
Help Needed
Replies: 1 comment 1 reply
-
@olukunleEcosia Was not able to reproduce.. which version of Nightwatch are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I add the tag property when using the describe interface, tests are not getting targeted.
The tags work as expected with the describe interface when there are no before hooks in use. However, as soon as I use page objects with a before hook, whereby a page object needs to be assigned to a variable, the test isn't targeted with the tag.
When I run the test with the tag, it gives a generic error as if the tag wasn't found. While the same test executes if I run it specifying the file path
Has anyone experienced this before and would like to share a solution?
Beta Was this translation helpful? Give feedback.
All reactions