diff --git a/tests/src/Nightwatch/Tests/selectOtherTest.js b/tests/src/Nightwatch/Tests/selectOtherTest.js
new file mode 100644
index 0000000..3e806ea
--- /dev/null
+++ b/tests/src/Nightwatch/Tests/selectOtherTest.js
@@ -0,0 +1,30 @@
+module.exports = {
+  '@tags': ['cck_select_other'],
+  before(browser) {
+    const setupFile = `${__dirname}/../../TestSite/SelectOtherInstallTestScript.php`;
+    browser
+      .drupalInstall({ setupFile })
+      .drupalCreateUser({
+        name: 'sam',
+        password: 'sam',
+        permissions: [
+          'access content',
+          'create page content',
+          'edit any page content',
+        ],
+      });
+  },
+  after(browser) {
+    browser.drupalUninstall();
+  },
+  'Make select other text input hidden or visible': (browser) => {
+    browser
+      .drupalLogin({ name: 'sam', password: 'sam' })
+      .drupalRelativeURL('/node/add/page')
+      .assert.hidden('.form-select-other-text-input')
+      .click('select[name="field_random_choice[0][select_other_list]"] option[value="other"]')
+      .waitForElementVisible('input[name="field_random_choice[0][select_other_text_input]"]', 1000)
+      .assert.visible('input[name="field_random_choice[0][select_other_text_input]"]')
+      .drupalLogAndEnd({ onlyOnError: false });
+  },
+};
diff --git a/tests/src/TestSite/SelectOtherInstallTestScript.php b/tests/src/TestSite/SelectOtherInstallTestScript.php
new file mode 100644
index 0000000..0a7b8a7
--- /dev/null
+++ b/tests/src/TestSite/SelectOtherInstallTestScript.php
@@ -0,0 +1,209 @@
+<?php
+
+namespace Drupal\Tests\cck_select_other\TestSite;
+
+use Drupal\Component\Utility\NestedArray;
+use Drupal\Component\Utility\Random;
+use Drupal\Core\Entity\Entity\EntityFormDisplay;
+use Drupal\Core\Entity\Entity\EntityViewDisplay;
+use Drupal\field\Entity\FieldConfig;
+use Drupal\field\Entity\FieldStorageConfig;
+use Drupal\node\Entity\NodeType;
+use Drupal\TestSite\TestSetupInterface;
+
+/**
+ * Setup file used for cck_select_other Nightwatch tests.
+ */
+class SelectOtherInstallTestScript implements TestSetupInterface {
+
+  /**
+   * Random generator.
+   *
+   * @var \Drupal\Component\Utility\Random
+   */
+  protected $randomGenerator;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $modules = [
+    'node',
+    'field_ui',
+    'options',
+    'cck_select_other',
+  ];
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setup() {
+    \Drupal::service('module_installer')->install($this->modules);
+
+    $this->createContentType(['type' => 'page', 'name' => 'Page']);
+
+    $options = $this->createOptions();
+    list($default_value, $label) = $this->getRandomOption($options);
+    $storage_values = [
+      'field_name' => 'field_random_choice',
+      'settings' => ['allowed_values' => $options],
+      'cardinality' => 1,
+    ];
+    $config_values = [
+      'field_name' => 'field_random_choice',
+      'required' => 0,
+      'default_value' => [
+        ['value' => $default_value],
+      ],
+    ];
+    $this->createSelectOtherListField('list_string', $storage_values, $config_values);
+  }
+
+  /**
+   * Install configuration for modules.
+   *
+   * @param array $values
+   *   Optional values to set on the content type.
+   */
+  protected function createContentType(array $values = []) {
+    if (!isset($values['type'])) {
+      $id = $this->randomMachineName();
+    }
+    else {
+      $id = $values['type'];
+    }
+
+    $values += [
+      'type' => $id,
+      'name' => $id,
+    ];
+
+    $type = NodeType::create($values);
+    $type->save();
+  }
+
+  /**
+   * Creates a select other field on the content type.
+   *
+   * @param string $type
+   *   The field type plugin ID.
+   * @param array $fieldInfo
+   *   The field storage configuration.
+   * @param array $instanceInfo
+   *   The field configuration.
+   *
+   * @return \Drupal\Core\Entity\EntityInterface|\Drupal\field\Entity\FieldStorageConfig
+   *   The field config instance.
+   *
+   * @throws \Drupal\Core\Entity\EntityStorageException
+   */
+  protected function createSelectOtherListField($type = 'list_string', array $fieldInfo = [], array $instanceInfo = []) {
+    $random = $this->getRandomGenerator();
+
+    // Create field storage instance.
+    $storage_values = NestedArray::mergeDeep($fieldInfo, [
+      'field_name' => strtolower($random->name(8, TRUE)),
+      'entity_type' => 'node',
+      'type' => $type,
+    ]);
+
+    $fieldStorage = FieldStorageConfig::create($storage_values);
+    $fieldStorage->save();
+
+    // Create field instance.
+    $field_values = NestedArray::mergeDeep($instanceInfo, [
+      'field_name' => $fieldStorage->getName(),
+      'entity_type' => 'node',
+      'bundle' => 'page',
+      'label' => $random->string(15),
+    ]);
+    $field = FieldConfig::create($field_values);
+    $field->save();
+
+    // Create form and display entities for select other field.
+    $display_id = 'node.page.default';
+    $formDisplay = EntityFormDisplay::load($display_id);
+    $formDisplay->setComponent($fieldStorage->getName(), [
+      'type' => 'cck_select_other',
+    ]);
+    $formDisplay->save();
+
+    $viewDisplay = EntityViewDisplay::load($display_id);
+    $viewDisplay->setComponent($fieldStorage->getName(), [
+      'type' => 'cck_select_other',
+    ]);
+    $viewDisplay->save();
+
+    return $fieldStorage;
+  }
+
+  /**
+   * Generates a unique random string containing letters and numbers.
+   *
+   * @param int $length
+   *   Length of random string to generate.
+   *
+   * @return string
+   *   Randomly generated unique string.
+   *
+   * @see \Drupal\Component\Utility\Random::name()
+   */
+  public function randomMachineName($length = 8) {
+    return $this->getRandomGenerator()->name($length, TRUE);
+  }
+
+  /**
+   * Gets the random generator for the utility methods.
+   *
+   * @return \Drupal\Component\Utility\Random
+   *   The random generator
+   */
+  protected function getRandomGenerator() {
+    if (!is_object($this->randomGenerator)) {
+      $this->randomGenerator = new Random();
+    }
+    return $this->randomGenerator;
+  }
+
+  /**
+   * Create select list options.
+   *
+   * @param int $num
+   *   The number of options to create.
+   * @param string $type
+   *   The field type.
+   *
+   * @return array
+   *   An associative array of allowed values keyed by value and the label as
+   *   the array item value.
+   */
+  public function createOptions($num = 5, $type = 'list_string') {
+    $options = [];
+    for ($i = 0; $i < $num; $i++) {
+      if ($type === 'list_string') {
+        $label = $this->getRandomGenerator()->word(10);
+        $key = strtolower($label);
+      }
+      else {
+        $label = $i;
+        $key = $i;
+      }
+      $options[$key] = $label;
+    }
+    return $options;
+  }
+
+  /**
+   * Gets a random option in a list of options.
+   *
+   * @param array $options
+   *   An array of list options.
+   *
+   * @return array
+   *   An indexed array of the key and value.
+   */
+  public function getRandomOption(array $options) {
+    $option = array_rand($options);
+    return [$option, $options[$option]];
+  }
+
+}
