PostMenu's '_extraButtons' isn't reset in between acceptance tests

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.

1 Like

Hi good catch thanks.

This should do it once merged:

Bear in mind that depending on the type of tests you do you might have to manually import the function and call it in your tests.

2 Likes