Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a step to check that a button is not in a region. #527

Merged
merged 3 commits into from
Feb 6, 2019

Conversation

idimopoulos
Copy link
Contributor

There is already a step in MarkupContext to assert that a button exists within a region but not one to assert that one does not exist. Here is a small patch.

@pfrenssen
Copy link
Collaborator

Nice addition! Could you add a test for this?

@idimopoulos idimopoulos force-pushed the assert_not_region_button branch from 1cb163f to 2002f6e Compare February 5, 2019 11:24
@pfrenssen
Copy link
Collaborator

This should do the trick, but the test looks for the "content" region on the homepage, but this page has no content. Could you maybe change it to instead look into the "right header"?

@pfrenssen
Copy link
Collaborator

Great, thanks!

We have a positive and negative step definition for most things, but the negative one was missing for buttons, and this is now fixed 👍

@pfrenssen pfrenssen merged commit be7f3c5 into jhedstrom:master Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants