When you’re conditionally adding a PostMenuButton using the plugin-api
, the extra button is included in _extraButtons
in between acceptance tests.
When I run tests, if the tests where the button shouldn’t be visible are run last, these tests fail. When I rerun, I assume these tests are run first, as there are no errors.