diff --git a/src/Tests/FlagConfirmFormTest.php b/src/Tests/FlagConfirmFormTest.php
index 9734e19..e371fa8 100644
--- a/src/Tests/FlagConfirmFormTest.php
+++ b/src/Tests/FlagConfirmFormTest.php
@@ -66,6 +66,11 @@ class FlagConfirmFormTest extends WebTestBase {
    * Test the confirm form link type.
    */
   public function testCreateConfirmFlag() {
+    // @todo: Remove this when https://www.drupal.org/node/2466703 is fixed.
+    // This is related to Dynamic Page Cache in core
+    // https://www.drupal.org/node/2429617.
+    \Drupal::service('module_installer')->uninstall(['dynamic_page_cache']);
+
     // Create and log in our user.
     $this->adminUser = $this->drupalCreateUser([
       'administer flags',
diff --git a/src/Tests/FlagFieldEntryTest.php b/src/Tests/FlagFieldEntryTest.php
index d0fb51a..f8e231f 100644
--- a/src/Tests/FlagFieldEntryTest.php
+++ b/src/Tests/FlagFieldEntryTest.php
@@ -77,6 +77,11 @@ class FlagFieldEntryTest extends WebTestBase {
    */
   protected function setUp() {
     parent::setUp();
+    // @todo: Remove this when https://www.drupal.org/node/2466703 is fixed.
+    // This is related to Dynamic Page Cache in core
+    // https://www.drupal.org/node/2429617.
+    \Drupal::service('module_installer')->uninstall(['dynamic_page_cache']);
+
     // The breadcrumb block is needed for FieldUiTestTrait's tests.
     $this->drupalPlaceBlock('system_breadcrumb_block');
     $this->drupalPlaceBlock('local_tasks_block');
diff --git a/src/Tests/FlagSimpleTest.php b/src/Tests/FlagSimpleTest.php
index e559711..390da3b 100644
--- a/src/Tests/FlagSimpleTest.php
+++ b/src/Tests/FlagSimpleTest.php
@@ -65,6 +65,11 @@ class FlagSimpleTest extends WebTestBase {
    * Configures test base and executes test cases.
    */
   public function testFlagForm() {
+    // @todo: Remove this when https://www.drupal.org/node/2466703 is fixed.
+    // This is related to Dynamic Page Cache in core
+    // https://www.drupal.org/node/2429617.
+    $this->container->get('module_installer')->uninstall(['dynamic_page_cache']);
+
     // Create and log in our user.
     $this->adminUser = $this->drupalCreateUser([
       'administer flags',
