diff --git a/src/test/java/org/dvsa/testing/framework/stepdefs/vol/PublicHolidays.java b/src/test/java/org/dvsa/testing/framework/stepdefs/vol/PublicHolidays.java index 8acc9a690..8be9b985b 100644 --- a/src/test/java/org/dvsa/testing/framework/stepdefs/vol/PublicHolidays.java +++ b/src/test/java/org/dvsa/testing/framework/stepdefs/vol/PublicHolidays.java @@ -26,7 +26,7 @@ public class PublicHolidays extends BasePage { public PublicHolidays(World world) {this.world = world;} @When("I am on the public holidays page") - public void iAmOnThePublicHolidaysPage() throws HttpException { + public synchronized void iAmOnThePublicHolidaysPage() throws HttpException { world.internalNavigation.logInAsAdmin(); world.internalNavigation.adminNavigation(AdminOption.PUBLIC_HOLIDAYS); }