Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / test / javascript.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/test/javascript.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/test/javascript.twig
deleted file mode 100644 (file)
index a1cfbdb..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace Drupal\Tests\{{ machine_name }}\FunctionalJavascript;
-
-use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
-
-/**
- * Tests the JavaScript functionality of the {{ name }} module.
- *
- * @group {{ machine_name }}
- */
-class {{ class }} extends JavascriptTestBase {
-
-  /**
-   * Tests password strength widget.
-   */
-  public function testLogin() {
-    $admin_user = $this->drupalCreateUser();
-    $this->drupalLogin($admin_user);
-
-    $this->drupalGet('user/register');
-
-    $page = $this->getSession()->getPage();
-
-    $password_field = $page->findField('Password');
-    $password_strength = $page->find('css', '.js-password-strength__text');
-
-    $this->assertEquals('', $password_strength->getText());
-
-    $password_field->setValue('abc');
-    $this->assertEquals('Weak', $password_strength->getText());
-
-    $password_field->setValue('abcABC123!');
-    $this->assertEquals('Fair', $password_strength->getText());
-
-    $password_field->setValue('abcABC123!sss');
-    $this->assertEquals('Strong', $password_strength->getText());
-  }
-
-}