diff --git a/tests/behat/.gitignore b/tests/behat/.gitignore deleted file mode 100644 index 89e46e3b8..000000000 --- a/tests/behat/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -composer.phar -composer.lock -bin -vendor -behat.local.yml -*.rej -test_releases - diff --git a/tests/behat/behat.yml b/tests/behat/behat.yml deleted file mode 100644 index 618ba5d3e..000000000 --- a/tests/behat/behat.yml +++ /dev/null @@ -1,36 +0,0 @@ -default: - suites: - default: - paths: - - "%paths.base%/features" - extensions: - Drupal\MinkExtension: - ajax_timeout: 5 - browser_name: chrome - javascript_session: default - # configure the base url for your site - base_url: http://cyberteam.cnctci.lndo.site - # set default command for "Show last response" step. - show_cmd: "open %s" - Behat\MinkExtension: - base_url: http://cyberteam.cnctci.lndo.site - sessions: - default: - chrome: - api_url: "http://localhost:9222" - # Set the optimal Socket Timeout to avoid client-server connection problems in behat scripts. - socket_timeout: 60 - files_path: "%paths.base%/media" - Drupal\DrupalExtension: - blackbox: ~ - api_driver: "drupal" - jarnaiz\JUnitFormatter\JUnitFormatterExtension: - filename: report.xml - outputDir: "%paths.base%/build/tests" - # Bex\Behat\ScreenshotExtension: - # screenshot_taking_mode: failed_steps - # image_drivers: - # local: - # screenshot_directory: "%paths.base%/screenshots" - calls: - error_reporting: 8191 # php -r "echo E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; diff --git a/tests/behat/example.local.yml b/tests/behat/example.local.yml deleted file mode 100644 index 840f72b6b..000000000 --- a/tests/behat/example.local.yml +++ /dev/null @@ -1,55 +0,0 @@ -# To generate a local.yml file using this the example template, execute: -# `blt tests:behat:init` from the project root. -imports: - - behat.yml - -local: - suites: - default: - paths: - # Set features to repo root so that .feature files belonging to contrib - # modules, themes, and profiles can be discovered. - features: ${repo.root} - contexts: - - Drupal\FeatureContext: - parameters: - environment: - # absolute path to local directory to store screenshots - do not include trailing slash - screenshot_dir: ${tests.reports.localDir} - - Drupal\DrupalExtension\Context\DrupalContext - - Drupal\DrupalExtension\Context\MinkContext - - Drupal\DrupalExtension\Context\MessageContext - - Drupal\DrupalExtension\Context\DrushContext - - Drupal\DrupalExtension\Context\ConfigContext - extensions: - DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~ - Behat\MinkExtension: - browser_name: chrome - javascript_session: default - # configure the base url for your site - base_url: ${project.local.uri} - # set default command for "Show last response" step. - show_cmd: "open %s" - # use the following lines to disable SSL authentication for goutte. - # goutte: - # guzzle_parameters: - # redirect.disable: true - # ssl.certificate_authority: system - # curl.options: - # CURLOPT_SSL_VERIFYPEER: false - # CURLOPT_SSL_VERIFYHOST: false - # CURLOPT_CERTINFO: false - # CURLOPT_TIMEOUT: 120 - selenium2: - wd_host: ${behat.selenium.url} - browser: chrome - sessions: - default: - chrome: - api_url: "http://localhost:9222" - Drupal\DrupalExtension: - drupal: - # This must be an absolute path. - drupal_root: ${docroot} - drush: - alias: '@self' diff --git a/tests/behat/features/Jasper/about_us-subpages.feature b/tests/behat/features/Jasper/about_us-subpages.feature deleted file mode 100644 index 237900f60..000000000 --- a/tests/behat/features/Jasper/about_us-subpages.feature +++ /dev/null @@ -1,17 +0,0 @@ -@wip- -@api -@javascript - -Feature: test About Us page - - Scenario: About Us page has expected links - Given I am not logged in - When I am on "about-us/user-guide" - Then I should see "Welcome to the Cyberteam Portal Users Guide!" - When I am on "about-us/affinity-groups-faq" - Then I should see "Affinity Groups encourage community members to gather" - When I am on "code-conduct" - Then I should see "ACCESS welcomes and encourages participation in our community by people of all backgrounds and identities" - When I am on "news" - Then I should see "Published Articles" - diff --git a/tests/behat/features/Jasper/form-add-project.feature b/tests/behat/features/Jasper/form-add-project.feature deleted file mode 100644 index 5a40342fb..000000000 --- a/tests/behat/features/Jasper/form-add-project.feature +++ /dev/null @@ -1,29 +0,0 @@ -@wip-- -@api - -Feature: add a test project via the form - To test adding project - As admin - I can add a project - - Scenario: Add a test-project for "password" tag and verify it appears - Given I am logged in as a user with the "administrator" role - When I go to "projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "Project Title" with "test-project-title" - When I check "At-Large" - # tags: - When I check "login" - When I check "password" - When I fill in "First" with "test-first-name" - When I fill in "Last" with "test-last-name" - When I fill in "Email" with "test@email.com" - When I fill in "Project Description" with "test project description" - When I press "Submit" - Then I should see "test-project-title" - And I should see "login, password" - And I should see "At-Large" - And I should see "test project description" - \ No newline at end of file diff --git a/tests/behat/features/Jasper/node-add-tagged-blog-post.feature b/tests/behat/features/Jasper/node-add-tagged-blog-post.feature deleted file mode 100644 index 106a83493..000000000 --- a/tests/behat/features/Jasper/node-add-tagged-blog-post.feature +++ /dev/null @@ -1,61 +0,0 @@ -@wip-- -@api - -Feature: add a blog post with a tag - To test adding a blog post with a tag - As admin - I can add a blog post with a tag and verify the blog appears for the tag - - Scenario: Add a "test-blog-post" for "login" tag and verify it appears - Given I am logged in as a user with the "administrator" role - - # first create a dummy project - When I go to "form/project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "Project Title" with "test-dummy-project-for-blog" - When I check "At-Large" - # tags: - When I check "cloud-commercial" - When I fill in "First" with "test-first-name" - When I fill in "Last" with "test-last-name" - When I fill in "Email" with "test@email.com" - When I fill in "Project Description" with "test project description" - When I press "Submit" - Then I should see "test-dummy-project-for-blog" - - # create a dummy second project - When I go to "form/project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "Project Title" with "test-dummy-project-for-blog" - When I check "At-Large" - # tags: - When I check "cloud-commercial" - When I fill in "First" with "test-first-name" - When I fill in "Last" with "test-last-name" - When I fill in "Email" with "test@email.com" - When I fill in "Project Description" with "test project description" - When I press "Submit" - Then I should see "test-dummy-project-for-blog" - - When I go to "node/add/blog_post" - When I fill in "Title" with "test-blog-post-with-tag-cloud_commercial" - # tag is "cloud-commercial" - When I select "183" from "edit-field-tags" - When I fill in "Project" with "test-dummy-project-for-blog (1)" - When I check "Published" - When I press "Save" - Then I should see "test-blog-post-with-tag-cloud_commercial" - And I should see "cloud-commercial" - And I should see "test-dummy-project-for-blog" - - Given I am not logged in - When I go to "tags/cloud-commercial" - Then I should see "Blog Entries" - When I follow "test-blog-post-with-tag-cloud_commercial" - Then I should see "test-blog-post-with-tag-cloud_commercial" - And I should see "cloud-commercial" - And I should see "test-dummy-project-for-blog" - - \ No newline at end of file diff --git a/tests/behat/features/Jasper/registration_pages.feature b/tests/behat/features/Jasper/registration_pages.feature deleted file mode 100644 index 142767e07..000000000 --- a/tests/behat/features/Jasper/registration_pages.feature +++ /dev/null @@ -1,15 +0,0 @@ -@wip- -@api -@javascript - -Feature: Test registration page - - Scenario: Verify the Join button links to join - Given I am not logged in - When I am on the homepage - When I click "Join" - Then I should be on "user/register" - And I should see "Please select an account type below to create" - - #When I click on "Student - \ No newline at end of file diff --git a/tests/behat/features/Jasper/verify_image_2.feature b/tests/behat/features/Jasper/verify_image_2.feature deleted file mode 100644 index 4fc005865..000000000 --- a/tests/behat/features/Jasper/verify_image_2.feature +++ /dev/null @@ -1,11 +0,0 @@ -@wip- -@api -@javascript - -Feature: test - - Scenario: test - - When I go to "/ondemand" - Then I should see "Rockfish" - Then I should see an image with alt text "John Hopkins University" diff --git a/tests/behat/features/Jasper/verify_image_tests.feature b/tests/behat/features/Jasper/verify_image_tests.feature deleted file mode 100644 index ea1acf7b9..000000000 --- a/tests/behat/features/Jasper/verify_image_tests.feature +++ /dev/null @@ -1,21 +0,0 @@ -@wip- -@api -@javascript - -Feature: test - - Scenario: test - When I am on the homepage - Then all images with selector ".logo" should load - - When I am on "/pegasus" - Then all images with selector ".logo" should have alt text - - Then I should see an image with alt text "Northeast Cyberteam" - Then I should see an image with src "/sites/default/files/inline-images/pegasus.png" - Then I should see an image with alt text "Pegasus logo" - Then the image url "/sites/default/files/inline-images/pegasus.png" should load - - # check failure - # Then I should see an image with alt text "xxxx" - # Then the image url "xxxx" should load diff --git a/tests/behat/features/Jasper/wip.feature b/tests/behat/features/Jasper/wip.feature deleted file mode 100644 index b172476ec..000000000 --- a/tests/behat/features/Jasper/wip.feature +++ /dev/null @@ -1,52 +0,0 @@ -@wip-- -@api -@javascript -Feature: test individual Affinity Group page - - - Scenario: Administrator adds existing ci-link to an affinity group - Given I am logged in as a user with the "administrator" role - When I go to "node/327/edit" - Then I should see "Edit Affinity Group ACCESS Support" - When I fill in "edit-field-resources-entity-reference-0-target-id" with "ci-link-for-user-200 (2)" - #And I wait 4 seconds - When I press "Save" - Then I should see "Affinity Group ACCESS Support has been updated." - Then I should see "ci-link-for-user-200" - Then I should see "xxxxxx" - - - - Scenario: Admin user adds a CI Link to the AG ACCESS Support - Given I am logged in as a user with the "administrator" role - # add a CI-Link to an AG - When I go to "node/327/edit" - Then I should see "Edit Affinity Group ACCESS Support" - # this CI link is created by amp_dev.install - When I fill in "Display Knowledge Base Resources on your Affinity Group" with "ci-link-for-user-200" - And I wait 1 seconds - When I press "Save" - And I wait 2 seconds - Then I should see "Affinity Group ACCESS Support has been updated." - When I follow "ci-link-for-user-200" - And I wait 1 seconds - Then I should see "ci-link-for-user-200" - - - #Scenario: Administrator user creates KB Resource and adds it to an affinity group - Given I am logged in as a user with the "administrator" role - When I go to "/form/resource" - Then I should see "Knowledge Base Resources" - When I fill in "title" with "dummy-ci-link-for-ag-testing" - When I select "learning" from "category" - When I check "Approved" - # login tag - When I check "edit-tags-682" - When I check "Beginner" - When I fill in "Description" with "dummy-ci-link-for-ag-testing" - When I fill in "Link Title" with "dummy-ci-link-for-ag-testing" - When I fill in "Link URL" with "http://example.com" - #When I wait 3 seconds - When I press "Submit" - When I go to /knowledge-base/resources" - Then I should see "dummy-ci-link-for-ag-testing" diff --git a/tests/behat/features/_README_behat.txt b/tests/behat/features/_README_behat.txt deleted file mode 100644 index ffe59af82..000000000 --- a/tests/behat/features/_README_behat.txt +++ /dev/null @@ -1,24 +0,0 @@ -Many things to say about the behat feature tests. - -Here's one quick topic: - -Naming Conventions: - -Feature filenames start with the thing being tested, followed by -a dash and any sub-feature (if there is one), followed by a dash -and whether it's auth or unauth (if needed -- if not provided, we -can assume it contains both auth & unauth tests). - -Tests can contain numbers to control the order in which they are run. - -In general the filenames are all lower-case. - -so, some examples: - tags-unauth.feature - tags-auth.feature - tags-no-entries.feature - tags-individual.feature - headers-auth.feature - headers-unauth.feature - projects-part-1.feature - projects-part-2.feature \ No newline at end of file diff --git a/tests/behat/features/bootstrap/Drupal/FeatureContext.php b/tests/behat/features/bootstrap/Drupal/FeatureContext.php deleted file mode 100644 index 20995b864..000000000 --- a/tests/behat/features/bootstrap/Drupal/FeatureContext.php +++ /dev/null @@ -1,639 +0,0 @@ -getEnvironment()->getContext('Drupal\DrupalExtension\Context\MinkContext'); - if (!$mink_context) { - return; - } - $mink_context->setMinkParameter('ajax_timeout', 15); - } - - /** - * Log in as a particular email. - * - * @param string $email - * Email of user. - * - * @Given I am logged in with email :name - */ - public function iAmLoggedInWithEmail($email) { - - $domain = $this->getMinkParameter('base_url'); - $uli = $this->getDriver('drush')->drush('uli', [ - "--mail=$email", - "--browser=0", - "--uri=$domain", - ]); - - // Trim EOL characters. - $uli = trim($uli); - - // Log in. - $this->getSession()->visit($uli); - } - - /** - * Log in as a particular UID. - * - * @param string $uid - * Uid of user. - * - * @Given I am logged in with uid :uid - */ - public function iAmLoggedInAsUid($uid) { - - $domain = $this->getMinkParameter('base_url'); - $uli = $this->getDriver('drush')->drush('uli', [ - "--uid=$uid", - "--browser=0", - "--uri=$domain", - ]); - - // Trim EOL characters. - $uli = trim($uli); - - // Log in. - $this->getSession()->visit($uli); - } - - /** - * Look for submenus under a menu item. - * - * @param string $menu_text - * The text of the menue to verify. - * @param string $links - * A comma-separated list of submenu items to verify. - * - * @Given menu :menu should have links :links - */ - public function menuShouldHaveLink($menu_text, $links) { - $page = $this->getSession()->getPage(); - - // Look for 1 element with the menu name. - $menu_element = $page->findAll('named', ['link', $menu_text]); - $cnt = count($menu_element); - if ($cnt === 0) { - throw new \Exception("Did not find a link with text '$menu_text'"); - } - - if ($cnt > 1) { - print("WARNING, Found $cnt links with text '$menu_text' - expected just 1, using first one. This can be corrected by specifying the ID of this link in the feature file."); - } - - // Ok, let's hover it. (Turns out to be unnecessary.) - // $menu_element[0]->mouseOver(); - // Need to get it's parent's parents to find submenus. - $menu_element = $menu_element[0]->getParent()->getParent(); - - $this->verifySubmenus($menu_element, $menu_text, $links); - } - - /** - * Add text to a CKEditor. - * - * @param string $ck_editor_id - * The id of a ck-editor. - * @param string $ck_text - * Text to add to the ck-editor. - * - * @When I fill the rich textarea :ck_editor_id with :ck_text - */ - public function ckEditorAddText($ck_editor_id, $ck_text) { - $page = $this->getSession()->getPage(); - - // Look for 1 element with the menu name. - $ck_editor = $page->findAll('named', ['id', $ck_editor_id]); - $cnt = count($ck_editor); - if ($cnt === 0) { - throw new \Exception("Did not find a ck-editor with id '$ck_editor_id'"); - } - - if ($cnt > 1) { - print("WARNING, Found $cnt elements with id '$ck_editor_id' - expected just 1, using first one."); - } - - $ck_editor = $ck_editor[0]->find('css', '.ck-editor__editable'); - - // print('ck_editor getHtml: "' . $ck_editor->getHtml() . "\"\n"); - - // Padding the ck_text with some text seems to be needed. Not sure why, but - // the ck-editor sometime rotates the characters of the - // the text being added to the field. - $ck_editor->setValue('pad ' . $ck_text . ' pad'); - - // print('ck_editor getHtml: "' . $ck_editor->getHtml() . "\"\n"); - } - - /** - * Look for links under an element identified by an ID. - * - * @param string $menu_text - * The text of the menu to verify. - * @param string $link_id - * The ID of a DOM element. - * @param string $links - * A comma-separated list of submenu items to verify. - * - * @Given menu :menu (with id=:link_id) should have links :links - */ - public function iHoverOverTheElement($menu_text, $link_id, $links) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($link_id); - - if (!str_starts_with($elem->getText(), $menu_text)) { - throw new \Exception(sprintf( - 'Link with specified id does not start with "%s", its text is "%s"', - $menu_text, - $elem->getText() - )); - } - - if (NULL === $elem) { - throw new \Exception(sprintf('Could not find link for menu "%s" with id "%s"', $menu_text, $link_id)); - } - - // Ok, let's hover it. (Turns out to be unnecessary.) - // $element->mouseOver(); - $this->verifySubmenus($elem, $menu_text, $links); - } - - /** - * Display an element identified by an ID. - * - * @param string $element_id - * The text of the menue to verify. - * - * @Then I print element with id :element_id - */ - public function iDisplayEnElement($element_id) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($element_id); - - print("element '$element_id': '" . ($elem ? $elem->getHtml() : "null") . "'\n"); - } - - /** - * Display an element's value identified by an ID. - * - * @param string $element_id - * The text of the menue to verify. - * - * @Then I print value of element with id :element_id - */ - public function iDisplayEnElementValue($element_id) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($element_id); - - print("element '$element_id' value: '" . ($elem ? $elem->getValue() : "null") . "'\n"); - } - - /** - * Display info about all elements with an id. - * - * @param string $link - * The link to display. - * - * @Then I display element :element_id - */ - public function iDisplayLink($link) { - $session = $this->getSession(); - $elems = $session->getPage()->findAll('named', ['id', $link]); - - if (count($elems) == 0) { - print("Did not find any elements with id '$link'\n"); - } - - foreach ($elems as $elem) { - print("link '$link':'\n"); - print(" outHtml = '" . $elem->getOuterHtml() . "'\n"); - print(" html = '" . $elem->getHtml() . "'\n"); - print(" text = '" . $elem->getText() . "'\n"); - print(" value = '" . $elem->getValue() . "'\n"); - } - } - - /** - * Verify the an element identified by an ID contains a string. - * - * @param string $element_id - * The text of the menu to verify. - * @param string $contents - * Text that should appear in the field. - * - * @Then element :element_id should contain :contents - */ - public function elementShouldContain($element_id, $contents) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($element_id); - - if (!$elem) { - throw new \Exception("Could not find element with id '$element_id'"); - } - - $html = $elem->getHtml(); - - if (!str_contains($html, $contents)) { - throw new \Exception("Element with id '$element_id' does not contain '$contents', it contains '$html'"); - } - } - - /** - * Verify a link contains a url. - * - * @param string $link_text - * The text of the link to verify. - * @param string $url - * URL that should appear in the field. - * - * @Then link :link_text should contain :url - */ - public function linkShouldContainUrl($link_text, $url) { - $session = $this->getSession(); - $elem = $session->getPage()->findLink($link_text); - - if (!$elem) { - throw new \Exception("Could not find link with text '$link_text'"); - } - - $href = $elem->getAttribute('href'); - - if (!str_contains($href, $url)) { - throw new \Exception("Link '$link_text' does not contain '$url', it contains '$href'"); - } - } - - /** - * Verify the an element identified by an ID does not contains a string. - * - * @param string $element_id - * The text of the menue to verify. - * @param string $contents - * Text that not should appear in the field. - * - * @Then element :element_id should not contain :contents - */ - public function elementShouldNotContain($element_id, $contents) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($element_id); - - if (!$elem) { - throw new \Exception("Could not find element with id '$element_id'"); - } - - if (str_contains($elem->getHtml(), $contents)) { - throw new \Exception("Element with id '$element_id' errantly contain '$contents'"); - } - } - - /** - * Verify the value of an element identified by an ID contains a string. - * - * @param string $element_id - * The text of the menue to verify. - * @param string $contents - * Text that should appear in the value of the element. - * - * @Then value of element :element_id should contain :contents - */ - public function elementHasValue($element_id, $contents) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($element_id); - - if (!$elem) { - throw new \Exception("Could not find element with id '$element_id'"); - } - - if (!str_contains($elem->getValue(), $contents)) { - throw new \Exception("Element with id '$element_id' does not contain '$contents'"); - } - } - - /** - * Verify an element is disabled. - * - * @param string $element_id - * The text of the menue to verify. - * - * @Then :element_id is disabled - */ - public function elementIsDisabled($element_id) { - $session = $this->getSession(); - $elem = $session->getPage()->findById($element_id); - - if (!$elem) { - throw new \Exception("Could not find element with id '$element_id'"); - } - - $contents = 'disabled="disabled"'; - - if (!str_contains($elem->getOuterHtml(), $contents)) { - throw new \Exception("Element with id '$element_id' does not contain '$contents'"); - } - } - - /** - * Verify the existence of submenus. - * - * @param unknown $menu_element - * The element to look for submenus under. - * @param string $menu_text - * The text of the menue to verify. - * @param string $links - * A comma-separated list of submenu items to verify. - */ - private function verifySubmenus($menu_element, $menu_text, $links) { - $submenus = explode(',', $links); - foreach ($submenus as $submenu) { - $submenu = trim($submenu); - $el2 = $menu_element->findLink($submenu); - if (NULL === $el2) { - throw new \Exception("For menu '$menu_text', could not find submenu '$submenu'"); - } - } - } - - /** - * Try waiting for readyState === complete. - * - * Not working as expected. - * - * @When I wait for the page to be loaded - */ - public function waitForThePageToBeLoaded() { - $this->getSession()->wait(10000, "document.readyState === 'complete'"); - } - - /** - * Waits a while, for debugging. - * - * @param int $seconds - * How long to wait. - * - * @When I wait :seconds second(s) - */ - public function wait($seconds) { - sleep($seconds); - } - - /** - * Look for a specific DOM element by selector. - * - * @Given I should see element with :arg1 selector - */ - public function iShouldSeeElement($selector) { - $page = $this->getSession()->getPage(); - $element = $page->find('css', $selector); - - if (empty($element)) { - throw new \Exception("No html element found for the selector ('$selector')"); - } - } - - /** - * Click an element by selector. - * - * @Given I click the element with selector :selector - */ - public function iClickTheElementWithSelector($selector) { - $page = $this->getSession()->getPage(); - $element = $page->find('named', ['content', $selector]); - - if (empty($element)) { - throw new \Exception("No element found for the selector ('$selector')"); - } - - $element->click(); - } - - /** - * Click an element. - * - * @Given I click the :arg1 element - */ - public function iClickTheElement($selector) { - $page = $this->getSession()->getPage(); - $element = $page->find('css', $selector); - - if (empty($element)) { - throw new \Exception("No html element found for the selector ('$selector')"); - } - - $element->click(); - } - - /** - * Verify a button is disabled. - * - * @When I should see the :selector button is disabled - */ - public function iShouldSeetheButtonIsDisabled($selector) { - $page = $this->getSession()->getPage(); - $element = $page->find('css', $selector); - if (empty($element)) { - throw new PendingException("No html element found for the selector ('$selector')"); - } - if (!$element->hasClass('disabled')) { - throw new PendingException("Element '$selector' is not disabled"); - } - } - - /** - * Verify an image loads. - * - * Verifies the page contains an image with the specified alt attribute, - * and that the image loads. - * - * Example: - * Then I should see an image with alt text "Pegasus logo" - * works on /pegasus, which contain this : - * Pegasus logo - * - * @When I should see an image with alt text :alt_text - */ - public function iShouldSeeAnImageWithAltText($alt_text) { - $imageElements = $this->getSession()->getPage()->findAll('css', 'img'); - foreach ($imageElements as $image) { - - $alt = $image->getAttribute('alt'); - - if ($alt === $alt_text) { - $src = $image->getAttribute('src'); - $this->verifyImageLoads($src); - // Found the text -- return from this test. - return; - } - } - - throw new \Exception("Did not find an image with alt text $alt_text"); - } - - /** - * Verify an alt text image loads. - * - * Verifies the page contains an image with the specified src attribute, - * and that the image loads and has some text for its alt attribute. - * - * Example: - * Then I should see an image with src "/sites/default/files/inline-images/pegasus.png" - * works on /pegasus, which contain this : - * Pegasus logo - * - * @When I should see an image with src :src - */ - public function iShouldSeeAnImageWithSrc($src) { - $imageElements = $this->getSession()->getPage()->findAll('css', 'img'); - foreach ($imageElements as $image) { - - $src_attr = $image->getAttribute('src'); - - if ($src_attr === $src) { - $this->verifyImageLoads($src); - if (!$image->getAttribute('alt')) { - throw new \Exception("Image at '$src' has no alt attribute."); - } - - // Found the image -- return from this test. - return; - } - } - - throw new \Exception("Did not find an image with src $src"); - } - - /** - * Verify a URL loads an image. - * - * @When the image url :url should load - */ - public function imageUrlShouldLoad($url) { - $this->verifyImageLoads($url); - } - - /** - * Look for element(s) with the specified class selector. - * - * Check their img element(s) can load and have mime type image. - * - * For example: NECT has this: - * - * and the following checks for it: - * Then all images with selector ".logo" should load - * Another example, checking all images at a selector: - * And all images with selector ".view-affinity-group img" should load - * - * @When all images with selector :selector should load - */ - public function imageAtSelectorShouldLoad($selector) { - $page = $this->getSession()->getPage(); - - $all = $page->findAll('css', $selector); - if (count($all) == 0) { - throw new \Exception("Found no elements with selector '$selector'"); - } - - foreach ($all as $elem_key => $ele_value) { - - $images = $ele_value->findAll('css', 'img'); - if (count($images) == 0) { - throw new \Exception("Found no images for element #$elem_key with selector '$selector'"); - } - - foreach ($images as $image_key => $image_value) { - - $url = $image_value->getAttribute('src'); - - $this->verifyImageLoads($url); - } - } - } - - /** - * Look for element(s) with the specified class selector. - * - * Check their img element(s) can load and have mime type image and have alt text. - * - * For example: NECT has this: - * - * and the following checks for it: - * Then all images with selector ".logo" should have alt text - * - * @When all images with selector :selector should have alt text - */ - public function imageAtSelectorHasAltText($selector) { - $page = $this->getSession()->getPage(); - - $all = $page->findAll('css', $selector); - if (count($all) == 0) { - throw new \Exception("Found no elements with selector '$selector'"); - } - - foreach ($all as $elem_key => $ele_value) { - - $images = $ele_value->findAll('css', 'img'); - if (count($images) == 0) { - throw new \Exception("Found no images for element #$elem_key with selector '$selector'"); - } - - foreach ($images as $image_key => $image_value) { - - $url = $image_value->getAttribute('src'); - - $this->verifyImageLoads($url); - - if (!$image_value->getAttribute('alt')) { - throw new \Exception("Image #$image_key for element #$elem_key with selector '$selector' has no alt text."); - } - } - } - } - - /** - * Verify a url points to a loadable image type resource. - */ - private function verifyImageLoads($url) { - if (substr($url, 0, 4) !== "http") { - $session_url = $this->getSession()->getCurrentUrl(); - $parsed = parse_url($session_url); - $url = $parsed['scheme'] . '://' . $parsed['host'] . $url; - } - - // var_dump("verifying image $url");. - $ch = curl_init($url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); - curl_exec($ch); - - // Get the content type. - $mime_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); - // var_dump($mime_type); - if (strpos($mime_type, 'image/') === FALSE) { - throw new \Exception(sprintf('The url %s did not return an image', $url)); - } - } -} diff --git a/tests/behat/features/careers/1-careers-domaindefault.feature b/tests/behat/features/careers/1-careers-domaindefault.feature deleted file mode 100644 index bcdd65b4f..000000000 --- a/tests/behat/features/careers/1-careers-domaindefault.feature +++ /dev/null @@ -1,24 +0,0 @@ -@careers -@api -@javascript - -Feature: test careers domain - In order to test the careers domain - As a user of the admin role - I need to switch careers to the default domain - - Scenario: Admin user sets careers domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/careersct_cyberinfrastucture_org" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - Then I should see "Learn more about how CAREERS can benefit your research" - #Then I should see "CAREERS: Bringing Computing Support to Small to Mid-Size Institutions in the Northeast U.S." - #Then I should see "About Us" - #When I click "About Us" - #Then I should see "About" - diff --git a/tests/behat/features/careers/careers-den-page.feature b/tests/behat/features/careers/careers-den-page.feature deleted file mode 100644 index a86b82752..000000000 --- a/tests/behat/features/careers/careers-den-page.feature +++ /dev/null @@ -1,64 +0,0 @@ -@careers -@api -@javascript - -Feature: test Distributed Experts Network - In order to test the Distributed Experts Network page - - - Scenario: Unauthenticated user Test the Distributed Experts Network section on the Homepage - Given I am not logged in - When I go to the homepage - Then I should see "NEW PROGRAM!" - Then I should see "Distributed Experts Network (DEN)" - Then I should see "Our experts can assist with computational challenges" - Then I should see "Request a consult and we will find an expert who can help you." - Then I should see an image with alt text "Have a compute question no one in your lab can answer? Need help deciding which modeling tool to deploy? Wondering where to get more cycles?" - Then I should see "REQUEST A CONSULT" - Then I should see "FIND OUT MORE" - - - Scenario: Unauthenticated user Test the Distributed Experts Network page - Given I am not logged in - When I go to "/distributed-experts-network" - Then I should see "Distributed Experts Network (DEN)" - Then I should see "Our experts can assist with computational challenges at small and mid-sized institutions." - Then I should see "Request a consult and we will find an expert who can help you." - Then I should see an image with alt text "Have a compute question no one in your lab can answer? Need help deciding which modeling tool to deploy? Wondering where to get more cycles?" - Then I should see "REQUEST A CONSULT" - Then I should see "A Sample of DEN Expertise Areas" - Then I should see "Astrophysics" - Then I should see "Bioinformatics" - Then I should see "Computational Chemistry" - Then I should see "Digital Humanities" - Then I should see "Economics" - Then I should see "Machine Learning" - Then I should see "Example Projects" - Then I should see "Getting Started with Jupyter Notebooks" - Then I should see "A researcher who was recently granted a startup allocation on a" - Then I should see "Integration of a New Sequencer" - Then I should see "A lab acquires a new sequencer that requires a Linux based “headnode”" - Then I should see "Electronic Structure Software set-up" - Then I should see "A Chemistry Researcher can use help selecting installing, configuring," - Then I should see "Optimizing Workflow" - Then I should see "A researcher got funding to purchase dedicated resource access and" - - Scenario: Unauthenticated user Test the Distributed Experts Network form - Given I am logged in as a user with the "authenticated" role - When I go to "/distributed-experts-network" - When I click "REQUEST A CONSULT" - Then I should be on "/form/distributed-experts-network-help" - Then I should see "Distributed Experts Network Help Request Form" - When I fill in "Institution's Carnegie Code" with "167394" - When I check "My institution wasn’t listed" - Then I should see "Institution" - When I uncheck "My institution wasn’t listed" - When I fill in "Please provide a brief description of your computational challenge." with "Testing" - When I fill in "What have you tried so far to solve this challenge?" with "testing" - #edit-actions-submit is the request help button - And I wait 5 seconds - When I press "edit-actions-submit" - And I wait 5 seconds - Then I should see "New submission added to Distributed Experts Network Help Request Form." - - diff --git a/tests/behat/features/careers/careers-get_help.feature b/tests/behat/features/careers/careers-get_help.feature deleted file mode 100644 index bd3b01d86..000000000 --- a/tests/behat/features/careers/careers-get_help.feature +++ /dev/null @@ -1,26 +0,0 @@ -@careers -@api -@javascript - -Feature: test get help page - In order to test the Get Help page - - - Scenario: Unauthenticated user Test the Get Help Page - Given I am not logged in - When I go to "/get-research-computing-help" - Then I should see "Get Research Computing Help" - Then I should see "at the Regional Help Desk" - Then I should see "Join the Regional Slack Discussion" - Then I should see "Ask a Question of the Community" - Then I should see "Find Learning Resources" - - When I click "at the Regional Help Desk" - Then I should see "You must log in to view this page" - - When I go to "/get-research-computing-help" - Then I should see "Join the Regional Slack Discussion" - Then I should see "Ask a Question of the Community" - When I click "Find Learning Resources" - And I wait 2 seconds - Then I should see "Knowledge Base Resources" diff --git a/tests/behat/features/careers/careers-homepage.feature b/tests/behat/features/careers/careers-homepage.feature deleted file mode 100644 index 72e586bdb..000000000 --- a/tests/behat/features/careers/careers-homepage.feature +++ /dev/null @@ -1,32 +0,0 @@ -@careers -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/careers_cyberteam" - And I should see "CAREERS Cyberteam" - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "CAREERS Cyberteam" - Then I should be on the homepage - - Scenario: Authenticated, User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/careers_cyberteam" - And I should see "CAREERS Cyberteam" - - Scenario: Authenticated, Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "CAREERS Cyberteam" - Then I should be on the homepage - \ No newline at end of file diff --git a/tests/behat/features/careers/careers-projects-1-submit-admin.feature b/tests/behat/features/careers/careers-projects-1-submit-admin.feature deleted file mode 100644 index f68b6eb3c..000000000 --- a/tests/behat/features/careers/careers-projects-1-submit-admin.feature +++ /dev/null @@ -1,20 +0,0 @@ -@careers -@api -@javascript - -Feature: add a test project via the form - To test adding project - As admin - I can add a project - TODO: ensure testing of the following: -Student line is within projects creation form - - Scenario: Add an "in-progress" project and verify it is created - - Given I am logged in as a user with the "administrator" role - When I go to the homepage - When I go to "/projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "What will the student learn?" with "test learning" diff --git a/tests/behat/features/cci/1-cci-domaindefault.feature b/tests/behat/features/cci/1-cci-domaindefault.feature deleted file mode 100644 index 7333ea5b5..000000000 --- a/tests/behat/features/cci/1-cci-domaindefault.feature +++ /dev/null @@ -1,21 +0,0 @@ -@cci -@api -@javascript - -Feature: test cci domain - In order to test the cci domain - As a user of the admin role - I need to switch cci to the default domain - - Scenario: Admin user sets cci domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/connectcidev_wpi_edu" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - And I wait 3 seconds - Then I should see "Connect.Cyberinfrastructure is a family of portals" - diff --git a/tests/behat/features/cci/cci-homepage.feature b/tests/behat/features/cci/cci-homepage.feature deleted file mode 100644 index 96cb98cb0..000000000 --- a/tests/behat/features/cci/cci-homepage.feature +++ /dev/null @@ -1,74 +0,0 @@ -@cci -@api -@javascript - -Feature: verify specific items on CCI homepage - This test verifies the following items: - Heading - Description - Card and list views - Links to program pages - Programs heading - Affinity groups heading - Affinity groups description - Check all program cards - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "Connect CI" - Then I should be on the homepage - - Scenario: Verify the main page has expected content - Given I am not logged in - When I am on the homepage - Then I should see "Welcome to Connect Cyberinfrastructure" - And I should see "A landing page for all our affiliated sites." - And I should see "Connect.Cyberinfrastructure is a family of portals" - And I should see "Card View" - And I should see "List View" - And I should see "CAREERS Cyberteam" - And I should see "Great Plains Cyberteam" - And I should see "ACCESS Support" - And I should see "Supporting the ACCESS Research Community" - When I click "List View" - Then I should see "Programs" - And I should see "Affinity Groups" - - When I am on the homepage - Then link "ACCESS Support" should contain "https://support.access-ci.org/" - - Then link "CAREERS Cyberteam" should contain "https://careers-ct.cyberinfrastructure.org" - Then link "Great Plains Cyberteam" should contain "https://greatplains.cyberinfrastructure.org" - Then link "Kentucky Cyberteam" should contain "https://kycyberteam.cyberinfrastructure.org" - Then link "Northeast Cyberteam" should contain "https://necyberteam.org" - Then link "RMACC" should contain "https://ask.cyberinfrastructure.org/c/rmacc/65" - Then link "SWEETER Cyberteam" should contain "https://sweeter.cyberinfrastructure.org" - Then link "TRECIS Cyberteam" should contain "https://trecis.cyberinfrastructure.org" - Then link "Campus Champions" should contain "https://campuschampions.cyberinfrastructure.org/" - - When I follow "Anvil" - Then I should be on "affinity-groups/anvil" - And I should see "Purdue University is the home of Anvil" - - Scenario: Authenticated Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Connect CI" - Then I should be on the homepage - - # TODO - currently broken - see D8-1014 - #Scenario: User is on the homepage and follows contact us - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/connect_ci" - And I should see "Your name" - - # TODO - currently broken - Scenario: Authenticated User is on the homepage and follows contact us - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/connect_ci" - And I should see "Your name" diff --git a/tests/behat/features/champ/1-champ-domaindefault.feature b/tests/behat/features/champ/1-champ-domaindefault.feature deleted file mode 100644 index 7a008a745..000000000 --- a/tests/behat/features/champ/1-champ-domaindefault.feature +++ /dev/null @@ -1,20 +0,0 @@ -@champ -@api -@javascript - -Feature: test champ domain - In order to test the champ domain - As a user of the admin role - I need to switch champ to the default domain - - Scenario: Admin user sets champ domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/campuschampions_cyberinfrastructure_org" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - Then I should see "Join this diverse community of research computing and data professionals tackling grand challenges with advanced computing." - diff --git a/tests/behat/features/champ/champ-about.feature b/tests/behat/features/champ/champ-about.feature deleted file mode 100644 index e8b45a93d..000000000 --- a/tests/behat/features/champ/champ-about.feature +++ /dev/null @@ -1,12 +0,0 @@ -@champ -@api -@javascript - -Feature: test for the become a campus champion page as an authenticated user - Scenario: User runs through the become a campus champion page as authenticated - Given I am logged in as a user with the "authenticated" role - When I go to "/about" - Then I should see "We foster a dynamic environment for a diverse" - # TODO find way to press "Join" - #When I press "Join" - #Then I should be on "/form/join-campus-champions" diff --git a/tests/behat/features/champ/champ-affinity-auth.feature b/tests/behat/features/champ/champ-affinity-auth.feature deleted file mode 100644 index b7fc27f0b..000000000 --- a/tests/behat/features/champ/champ-affinity-auth.feature +++ /dev/null @@ -1,46 +0,0 @@ -@champ -@api -@javascript - -Feature: For authenticated users, the Affinity Groups section showcases a list of groups, -each with a link to the group, a short description, and associated tags. An active "Join" -button is present, which changes to "Joined" upon clicking, displaying the tester's user -profile under 'People' on the Affinity Group page. Clicking again changes the button back -to "Join". Additionally, there's a button to request an Affinity Group that leads to the -Affinity Group Request page for authenticated users. - - Scenario: User runs through the affinity group page and individual page as authenticated. - Given I am logged in as a user with the "authenticated" role - When I go to "/affinity-groups" - Then I should see "Affinity Group" - Then I should see "Request an Affinity Group" - - When I click "Request an Affinity Group" - Then I should not see "Approved" - Then I should see "Affinity Group Name" - Then I should see "Affinity Group Image" - Then I should see "Coordinators" - Then I should see "Tags" - Then I should see "Description" - Then I should see "Summary" - Then I should see "Provide a short description that will appear on the Affinity Groups directory page." - Then I should see "Maximum 160 Characters Allowed" - Then I should see "Q&A Platform" - Then I should see "Github Organization" - Then I should see "Email List" - - When I go to "/affinity-groups/cloud-computing" - And I wait 4 seconds - Then I should see "Join" - When I click "Join" - And I wait 4 seconds - Then I should see "Joined" - When I click "Leave" - And I wait 4 seconds - Then I should see "Join" - Then I should see "Slack" - Then I should see "Q&A" - Then I should see "Email" - Then I should see "Coordinators" - Then I should see "Events" - Then I should see "People" diff --git a/tests/behat/features/champ/champ-affinity-unauth.feature b/tests/behat/features/champ/champ-affinity-unauth.feature deleted file mode 100644 index 61a550026..000000000 --- a/tests/behat/features/champ/champ-affinity-unauth.feature +++ /dev/null @@ -1,31 +0,0 @@ -@champ -@api -@javascript - -Feature: For unauthenticated users on the Campus Champion domains, -the Affinity Groups section presents a list of groups, each with a -link to the group, a short description, and associated tags. For each -Affinity Group, the page features the logo, name, description, and an -inactive "Join" button. Coordinators, events with links, resources, and -people are listed, along with constant "Join" functionality and additional buttons based on form content. - - Scenario: User runs through the affinity group page and individual page. - Given I am not logged in - When I go to "/affinity-groups" - Then I should see "affinity groups" - Then I should see "Affinity Group" - Then I should see "Request An Affinity Group" - - When I go to "/affinity-groups/access-support" - Then I should see "Members get updates" - Then I should see "ACCESS Support" - Then I should see "ACCESS-website" - Then I should see "Become an ACCESS Support insider by joining our affinity group." - Then I should see "Join" - Then I should see "Slack" - Then I should see "Events" - Then I should see "Knowledge Base Resources" - Then I should see "Announcements" - Then I should see "People" - - diff --git a/tests/behat/features/champ/champ-approve-admin.feature b/tests/behat/features/champ/champ-approve-admin.feature deleted file mode 100644 index 4a733c483..000000000 --- a/tests/behat/features/champ/champ-approve-admin.feature +++ /dev/null @@ -1,16 +0,0 @@ -@champ-- -@api -@javascript - -Feature: For authenticated users, the Request An Affinity Group Form includes -fields such as Affinity Group Name, Upload Image, Region, Coordinators, Tags, -Short Description, Description, Slack Link, and Ask.Ci Locale Link. Additionally, -an "Approved" checkbox is available exclusively for administrators. - - #TODO update this - - Scenario: User runs through the affinity group page and individual page as admin. - Given I am logged in as a user with the "administrator" role - When I go to "/affinity-groups" - When I click "Request an Affinity Group" - #Then I should see "masquerade" diff --git a/tests/behat/features/champ/champ-form-join-campus-champions.feature b/tests/behat/features/champ/champ-form-join-campus-champions.feature deleted file mode 100644 index 8796b9b19..000000000 --- a/tests/behat/features/champ/champ-form-join-campus-champions.feature +++ /dev/null @@ -1,38 +0,0 @@ -@champ -@api -@javascript - -Feature: Test registration page for becoming a campus champion - - Scenario: test the proccess of submitting a form to become a student campus champion - Given I am not logged in - When I am on "/form/join-campus-champions" - Then I should see "Join Campus Champions" - Then I should see "To Join the Campus Champions, we need a letter of collaboration" - Then I should see "Letter of Collaboration" - When I fill in "username" with "Test" - When I fill in "user_first_name" with "Test" - When I fill in "user_last_name" with "Test" - When I fill in "user_email" with "Test" - When I fill in "carnegie_classification" with "167394" - When I wait 1 seconds - When I press "edit-submit" - When I wait 3 seconds - - - Scenario: test the proccess of submitting a form to become a non-student campus champion - Given I am not logged in - When I am on "/form/join-campus-champions" - Then I should see "Join Campus Champions" - Then I should see "To Join the Campus Champions, we need a letter of collaboration" - Then I should see "Letter of Collaboration" - When I fill in "username" with "Test" - When I fill in "user_first_name" with "Test" - When I fill in "user_last_name" with "Test" - When I fill in "user_email" with "Test" - When I fill in "carnegie_classification" with "167394" - When I wait 1 seconds - When I press "edit-submit" - When I wait 3 seconds - # Then I should see ______ - diff --git a/tests/behat/features/champ/champ-govern-auth.feature b/tests/behat/features/champ/champ-govern-auth.feature deleted file mode 100644 index 126c1f19a..000000000 --- a/tests/behat/features/champ/champ-govern-auth.feature +++ /dev/null @@ -1,22 +0,0 @@ -@champ -@api -@javascript - -Feature: test for the governance page as an authenticated user - TODO: this test should verify the following: - List of Staff and Leadership Team members - Champion Elected Leadership Team - Champion Leadership Team Alumni - No Code of Conduct - -Current Campus Champions - A list of current Campus Champions. Should look similar to card view on the People Page - Scenario: User runs through the governance page as authenticated. - Given I am logged in as a user with the "authenticated" role - When I go to "/about-us/governance" - Then I should see "governance" - Then I should see "Champions Elected Leadership Team" - Then I should see "Champions Leadership Team and Staff Alumni" - Then I should see "Name" - Then I should see "Institution" - Then I should see "Position" diff --git a/tests/behat/features/champ/champ-homepage-links.feature b/tests/behat/features/champ/champ-homepage-links.feature deleted file mode 100644 index e0b1a6706..000000000 --- a/tests/behat/features/champ/champ-homepage-links.feature +++ /dev/null @@ -1,35 +0,0 @@ -@champ -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - When I follow "Connect.CI" - And I wait 4 seconds - # TODO - next lines fails with 'Current page is "/", but "/regions" expected.' - https://cyberteamportal.atlassian.net/browse/D8-1775 - #Then I should be on "/regions" - And I should see "Connect.Cyberinfrastructure is a family of portals, each representing a program" - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "Campus Champions" - Then I should be on the homepage - - Scenario: authenticated User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Connect.CI" - And I wait 4 seconds - And I should see "Connect.Cyberinfrastructure is a family of portals, each representing a program" - - - Scenario: authenticated Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Campus Champions" - Then I should be on the homepage - diff --git a/tests/behat/features/champ/champ-homepage.feature b/tests/behat/features/champ/champ-homepage.feature deleted file mode 100644 index fdcd03b13..000000000 --- a/tests/behat/features/champ/champ-homepage.feature +++ /dev/null @@ -1,53 +0,0 @@ -@champ -@api -@javascript - -Feature: For non-authenticated users, Campus Champions Specific Tests encompass the header - displaying a Top Menu bar with a "Log In" link (to user log in), a "Join" link - (to Join Campus Champions registration form), and the absence of the User menu. - The Cyberteam Logo links to the homepage, featuring unique logos for each region site, - and the Menu Items include an "About Us" link. The Front Page includes a Campus Champions - banner with animated statistics and a Campus Champions YouTube video. It also features four - links leading to the About page: "A Community of Practice," "Scientific Computing Advocates," - "Cyberinfrastructure Professionals," and "Mentors, Peers, and Students." Quick Links consist of - options to join the community, access tags, and seek help, with links to Join Campus Champions - Registration, Current Campus Champions page, affinity groups, Connect to Slack, Ask.Cyberinfrastructure, - Submit a Help Desk Ticket, Find Learning Resource, and Find Expert by Tag. - TODO: add test for - Job Listings - Four recent job posting cards - More Jobs button linking to Ask.CI job listing page - - - Scenario: Verify the main icon loads - Given I am not logged in - When I am on the homepage - Then I should see an image with alt text "Campus Champions" - Then I should see "Login" - Then I should see "Join" - Then I should see "About Us" - Then I should see "Find Champions" - Then I should see "Affinity Groups" - Then I should see "Resources" - Then I should see "Advancing Science" - Then I should see "Creating Community" - Then I should see "Building Knowledge" - Then I should see "Become a Champion" - Then I should see "Information Sharing" - Then I should see "Research Community" - Then I should see "Help with ACCESS allocations" - Then I should see "Campus Champions provide information on ACCESS and cyberinfrastructure" - Then I should see "Find other Champions" - Then I should see "We have an incredible diverse community of research" - Then I should see "Beyond the all-Champions calls and email list," - Then I should see "Join Affinity Groups" - Then I should see an image with alt text "Join Affinity Groups" - - When I click "Find Champions" - And I wait 4 seconds - Then I should be on "/champions/current-campus-champions" - - When I am on the homepage - And I click "Join Affinity Groups" - And I wait 4 seconds - Then I should be on "/affinity-groups" diff --git a/tests/behat/features/champ/champ-projects-1-submit-admin.feature b/tests/behat/features/champ/champ-projects-1-submit-admin.feature deleted file mode 100644 index 63d6d7f48..000000000 --- a/tests/behat/features/champ/champ-projects-1-submit-admin.feature +++ /dev/null @@ -1,20 +0,0 @@ -@champ -@api -@javascript - -Feature: add a test project via the form - To test adding project - As admin - I can add a project - TODO: ensure testing of the following: -Student line is within projects creation form - - Scenario: Add an "in-progress" project and verify it is created - - Given I am logged in as a user with the "administrator" role - When I go to the homepage - When I go to "/projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "What will the student learn?" with "test learning" diff --git a/tests/behat/features/champ/champ-user-register.feature b/tests/behat/features/champ/champ-user-register.feature deleted file mode 100644 index 07d0260f0..000000000 --- a/tests/behat/features/champ/champ-user-register.feature +++ /dev/null @@ -1,33 +0,0 @@ -@champ -@api -@javascript - -Feature: Test registration page - - Scenario: Verify the Join button links to join - Given I am not logged in - When I am on "user/register" - And I should see "Please select an account type below to create" - - When I follow "Research Computing Facilitator" - Then I should see "Create new research computing facilitator account" - - When I am on "user/register" - When I follow "Research Software Engineer" - Then I should see "Create new research software engineer account" - - When I am on "user/register" - When I follow "Cyberinfrastructure Systems Engineer" - Then I should see "Create new ci systems engineer account" - - When I am on "user/register" - When I follow "Student Champion" - Then I should see "Create new student champion account" - - When I am on "user/register" - When I follow "Domain Champion" - Then I should see "Create new domain champion account" - - When I am on "user/register" - When I follow "Representative" - Then I should see "Create new representative account" diff --git a/tests/behat/features/coco/1-coco-domaindefault.feature b/tests/behat/features/coco/1-coco-domaindefault.feature deleted file mode 100644 index 0c26b5686..000000000 --- a/tests/behat/features/coco/1-coco-domaindefault.feature +++ /dev/null @@ -1,20 +0,0 @@ -@coco -@api -@javascript - -Feature: test coco domain - In order to test the coco domain - As a user of the admin role - I need to switch coco to the default domain - - Scenario: Admin user sets coco domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/coco_cyberinfrastructure_org" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - Then I should see "Community of Communities" - diff --git a/tests/behat/features/coco/coco-auth.feature b/tests/behat/features/coco/coco-auth.feature deleted file mode 100644 index f930ed91d..000000000 --- a/tests/behat/features/coco/coco-auth.feature +++ /dev/null @@ -1,77 +0,0 @@ -@coco -@api -@javascript -Feature: This test verifies the following for the coco domain for an authenticated user: - CoCo logo shows - No menu items - Home page shows card listing of organizations - Name, Logo, website, Description (excerpted), Type, Tags - TODO: Home page shows exposed filters allowing user to filter orgs by type - Unauthenticated home page shows “login to suggest a new listing” button - Authenticated home page shows “Suggest an organization” button - Clicking organization name takes you to the detailed organization page - Name, Logo, website, Description (excerpted), Type, Tags, Contact button - Clicking an organization type takes you to a listing of organizations of that type - Clicking a tag takes you to the tag listing page - Individual organization page shows logo, name, link, type, tags, description, and email of org - “Suggest an organization” form (Organization | CoCo ) form contains following: - Organization Name (required), Logo, Alt tag, Shortened name (required), Contact Email, Organization type (required), Description, Tags - - Scenario: Authenticated/Unauthenticated user navigates through coco domain - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I wait for the page to be loaded - Then I should see an image with alt text "CoCo" - Then I should not see "About Us" - Then I should not see "Get Help" - Then I should not see "Projects" - - Then I should see "Campus Champions" - Then I should see "CaRCC" - Then I should see "Careers CT" - - Then I should see "Community of Practice" - Then I should see "Consortium" - Then I should see "Grant-Funded Program" - Then I should see "Non-profit" - - Then I should see "Suggest new organization" - - When I click "RCD+" - Then I should be on "glossary#rcd" - And I should see "Research computing and data plus involves people, scholarship, and resources" - - When I am on the homepage - When I click "Campus Champions" - Then I should see "Campus Champions" - #Then I should see "img-fluid" - Then I should see "https://campuschampions.org" - Then I should see "Community of Practice" - Then I should see "professional-development" - Then I should see "The Campus Champions Program" - Then I should see "Contact" - - When I go to the homepage - When I click "Suggest New Organization" - Then I should see "organization name" - Then I should see "Logo" - Then I should see "shortened name" - Then I should see "Organization Type" - Then I should see "Contact Email" - Then I should see "Description" - Then I should see "Tags" - Then I should see "Link URL" - - Then I click "Log out" - When I go to the homepage - Then I should see "Login To Suggest A New Listing" - When I click "Join" - Then I should see "Create new representative account" - When I fill in "Email address" with "test231@example.com" - When I fill in "Username" with "Test231" - When I fill in "First Name" with "Test" - When I fill in "Last Name" with "Test" - When I fill in "Organization" with "MGHPCC" - When I press "edit-submit" - - diff --git a/tests/behat/features/coco/coco-homepage.feature b/tests/behat/features/coco/coco-homepage.feature deleted file mode 100644 index 37ff75d58..000000000 --- a/tests/behat/features/coco/coco-homepage.feature +++ /dev/null @@ -1,31 +0,0 @@ -@coco -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/coco" - And I should see "CoCo" - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "CoCo" - Then I should be on the homepage - - Scenario: authenticated User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/coco" - And I should see "CoCo" - - Scenario: authenticated Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "CoCo" - Then I should be on the homepage diff --git a/tests/behat/features/coco/coco-registration_pages.feature b/tests/behat/features/coco/coco-registration_pages.feature deleted file mode 100644 index f24e94f40..000000000 --- a/tests/behat/features/coco/coco-registration_pages.feature +++ /dev/null @@ -1,16 +0,0 @@ -@coco -@api -@javascript - -Feature: Test registration page - TODO: ensure this verifies the following: - Join link in header takes user to “Create new representative account” form - Creating an account returns user to home page with “A welcome message with further instructions has been sent to your email address” - - Scenario: Verify the Join button links to join - Given I am not logged in - When I am on "user/register" - And I should see "Please select an account type below to create" - - When I follow "Representative" - Then I should see "Create new representative account" diff --git a/tests/behat/features/gpc/1-gpc-domaindefault.feature b/tests/behat/features/gpc/1-gpc-domaindefault.feature deleted file mode 100644 index 67b9ab70b..000000000 --- a/tests/behat/features/gpc/1-gpc-domaindefault.feature +++ /dev/null @@ -1,20 +0,0 @@ -@gpc -@api -@javascript - -Feature: test gpc domain - In order to test the gpc domain - As a user of the admin role - I need to switch gpc to the default domain - - Scenario: Admin user sets gpc domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/greatplains_wpi_edu" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - Then I should see "The Great Plains CyberTeam is a distributed mentor-mentee workforce development" - diff --git a/tests/behat/features/gpc/gpc-homepage.feature b/tests/behat/features/gpc/gpc-homepage.feature deleted file mode 100644 index 2c92c3a41..000000000 --- a/tests/behat/features/gpc/gpc-homepage.feature +++ /dev/null @@ -1,34 +0,0 @@ -@gpc -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/great_plains_cyberteam" - And I should see "Great Plains Cyberteam" - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "Great Plains Cyberteam" - Then I should be on the homepage - - Scenario: authenticated User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/great_plains_cyberteam" - And I should see "Great Plains Cyberteam" - - Scenario: authenticated Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Great Plains Cyberteam" - Then I should be on the homepage - - - \ No newline at end of file diff --git a/tests/behat/features/gpc/gpc-projects-1-submit-admin.feature b/tests/behat/features/gpc/gpc-projects-1-submit-admin.feature deleted file mode 100644 index 5e514bc69..000000000 --- a/tests/behat/features/gpc/gpc-projects-1-submit-admin.feature +++ /dev/null @@ -1,20 +0,0 @@ -@gpc -@api -@javascript - -Feature: add a test project via the form - To test adding project - As admin - I can add a project - TODO: ensure testing of the following: -Mentee line is within projects creation form - - Scenario: Add an "in-progress" project and verify it is created - - Given I am logged in as a user with the "administrator" role - When I go to the homepage - When I go to "/projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "What will the mentee learn?" with "test learning" diff --git a/tests/behat/features/ky/1-ky-domaindefault.feature b/tests/behat/features/ky/1-ky-domaindefault.feature deleted file mode 100644 index 23c5d8a91..000000000 --- a/tests/behat/features/ky/1-ky-domaindefault.feature +++ /dev/null @@ -1,20 +0,0 @@ -@ky -@api -@javascript - -Feature: test ky domain - In order to test the ky domain - As a user of the admin role - I need to switch ky to the default domain - - Scenario: Admin user sets ky domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/kycyberteam_cyberinfrastructure_org" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - Then I should see "Institutions in Kentucky and Surrounding States" - diff --git a/tests/behat/features/ky/ky-homepage.feature b/tests/behat/features/ky/ky-homepage.feature deleted file mode 100644 index fed8f3d5e..000000000 --- a/tests/behat/features/ky/ky-homepage.feature +++ /dev/null @@ -1,33 +0,0 @@ -@ky -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/kentucky_cyberteam" - And I should see "Kentucky Cyberteam" - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "Kentucky Cyberteam" - Then I should be on the homepage - - Scenario: Authenticated user is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/kentucky_cyberteam" - And I should see "Kentucky Cyberteam" - - Scenario: Authenticated, Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Kentucky Cyberteam" - Then I should be on the homepage - - \ No newline at end of file diff --git a/tests/behat/features/ky/ky-projects-1-submit-admin.feature b/tests/behat/features/ky/ky-projects-1-submit-admin.feature deleted file mode 100644 index 6801eb3b3..000000000 --- a/tests/behat/features/ky/ky-projects-1-submit-admin.feature +++ /dev/null @@ -1,20 +0,0 @@ -@ky -@api -@javascript - -Feature: add a test project via the form - To test adding project - As admin - I can add a project - TODO: ensure testing of the following: -Student line is within projects creation form - - Scenario: Add an "in-progress" project and verify it is created - - Given I am logged in as a user with the "administrator" role - When I go to the homepage - When I go to "/projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "What will the student learn?" with "test learning" diff --git a/tests/behat/features/nect/1-nect-domaindefault.feature b/tests/behat/features/nect/1-nect-domaindefault.feature deleted file mode 100644 index 2177cb2e3..000000000 --- a/tests/behat/features/nect/1-nect-domaindefault.feature +++ /dev/null @@ -1,20 +0,0 @@ -@nect -@api -@javascript - -Feature: test nect domain - In order to test the nect domain - As a user of the admin role - I need to switch nect to the default domain - - Scenario: Admin user sets nect domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/nectd8_wpi_edu" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - Then I should see "Institutions in Northern New England" - diff --git a/tests/behat/features/nect/nect-homepage.feature b/tests/behat/features/nect/nect-homepage.feature deleted file mode 100644 index 5d76205d1..000000000 --- a/tests/behat/features/nect/nect-homepage.feature +++ /dev/null @@ -1,31 +0,0 @@ -@nect -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User follows the contact us link to the contact form - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/northeast_cyberteam" - And I should see ", Northeast Cyberteam " - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "Northeast Cyberteam" - Then I should be on the homepage - - Scenario: authenticated User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/northeast_cyberteam" - And I should see ", Northeast Cyberteam " - - Scenario: authenticated Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Northeast Cyberteam" - Then I should be on the homepage diff --git a/tests/behat/features/nect/nect-projects-1-submit-admin.feature b/tests/behat/features/nect/nect-projects-1-submit-admin.feature deleted file mode 100644 index 7175b8f4e..000000000 --- a/tests/behat/features/nect/nect-projects-1-submit-admin.feature +++ /dev/null @@ -1,20 +0,0 @@ -@nect -@api -@javascript - -Feature: add a test project via the form - To test adding project - As admin - I can add a project - TODO: ensure testing of the following: -Student line is within projects creation form - - Scenario: Add an "in-progress" project and verify it is created - - Given I am logged in as a user with the "administrator" role - When I go to the homepage - When I go to "/projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "What will the student learn?" with "test learning" diff --git a/tests/behat/features/templates/_README_behat_templates.txt b/tests/behat/features/templates/_README_behat_templates.txt deleted file mode 100644 index 4bac2488f..000000000 --- a/tests/behat/features/templates/_README_behat_templates.txt +++ /dev/null @@ -1,4 +0,0 @@ -Tests in this directory get copied to other domains -(as of October 2022, these are 'careers', 'gpc', 'ky', 'nect') - -The tag on line 1 must be @templates. \ No newline at end of file diff --git a/tests/behat/features/templates/about_us/about_us-affinity_groups-faq-auth.feature b/tests/behat/features/templates/about_us/about_us-affinity_groups-faq-auth.feature deleted file mode 100644 index a766ed34b..000000000 --- a/tests/behat/features/templates/about_us/about_us-affinity_groups-faq-auth.feature +++ /dev/null @@ -1,28 +0,0 @@ -@templates -@api -@javascript -Feature: verify the /about-us/affinity-groups-faq as anonymous & authenticated user - - Scenario: Administrator user test the affinity faq page - Given I am not logged in - When I go to "/about-us/affinity-groups-faq" - Then I should see "Affinity Groups FAQ" - Then I should see "Affinity Groups encourage community members" - Then I should see "What is an Affinity Group?" - Then I should see "A group that encourages focused" - Then I should see "What are the benefits of Affinity Groups?" - Then I should see "Extra touchpoint when" - Then I should see "Who can join an affinity group" - Then I should see "Anyone with an account" - - Scenario: Administrator user test the affinity faq page - Given I am logged in as a user with the "authenticated" role - When I go to "/about-us/affinity-groups-faq" - Then I should see "Affinity Groups FAQ" - Then I should see "Affinity Groups encourage community members" - Then I should see "What is an Affinity Group?" - Then I should see "A group that encourages focused" - Then I should see "What are the benefits of Affinity Groups?" - Then I should see "Extra touchpoint when" - Then I should see "Who can join an affinity group" - Then I should see "Anyone with an account" diff --git a/tests/behat/features/templates/about_us/about_us-projects-guide-auth.feature b/tests/behat/features/templates/about_us/about_us-projects-guide-auth.feature deleted file mode 100644 index f366df5b3..000000000 --- a/tests/behat/features/templates/about_us/about_us-projects-guide-auth.feature +++ /dev/null @@ -1,27 +0,0 @@ -@templates -@api -@javascript -Feature: verify /about-us/project-guide as anonymous & authenticated user - - Scenario: Administrator user test the project guide - Given I am not logged in - When I go to "/about-us/project-guide" - Then I should be on "/user/login" - And I should see "You must log in to view this page." - - Scenario: Administrator user test the project guide - Given I am logged in as a user with the "authenticated" role - When I go to "/about-us/project-guide" - Then I should see "Project Guide" - Then I should see "Cyberteam Project Procedures" - Then I should see "Project Solicitation and Submission" - Then I should see "Publishing a Project" - Then I should see "Projects per Institution" - Then I should see "Projects per Student" - Then I should see "Recruiting Students" - Then I should see "Scheduling and Check-ins" - Then I should see "Launch Presentation" - Then I should see "Project Updates" - Then I should see "Wrap Presentation" - Then I should see "Finishing a Project" - diff --git a/tests/behat/features/templates/about_us/about_us-subpages.feature b/tests/behat/features/templates/about_us/about_us-subpages.feature deleted file mode 100644 index 77366c542..000000000 --- a/tests/behat/features/templates/about_us/about_us-subpages.feature +++ /dev/null @@ -1,15 +0,0 @@ -@templates -@api -@javascript - -Feature: verify the /about-us subpages as anonymous & authenticated user - - Scenario: unauthenticated user test About Us menu subpages - Given I am not logged in - When I am on "about-us/user-guide" - Then I should see "Welcome to the Cyberteam Portal Users Guide!" - - Scenario: authenticated user tests About Us menu subpages - Given I am logged in as a user with the "authenticated" role - When I am on "about-us/user-guide" - Then I should see "Welcome to the Cyberteam Portal Users Guide!" diff --git a/tests/behat/features/templates/about_us/code-of-conduct.feature b/tests/behat/features/templates/about_us/code-of-conduct.feature deleted file mode 100644 index 49ef01b1d..000000000 --- a/tests/behat/features/templates/about_us/code-of-conduct.feature +++ /dev/null @@ -1,25 +0,0 @@ -@templates -@api -@javascript - -Feature: Code of Conduct page - - Scenario: Verify essential features on code of conduct page - Given I am not logged in - When I go to "/connectci-code-of-conduct" - Then I should get a "200" HTTP response - Then I should see "Connect CI Code of Conduct" - Then I should see "Connect.Cyberinfrastructure is a family of portals," - Then I should see "Connect CI welcomes and encourages participation" - Then I should see "Introduction & Scope" - Then I should see "This code of conduct should be honored by everyone" - Then I should see "Standards for Behavior" - Then I should see "All communication should be appropriate for a professional audience" - Then I should see "Unacceptable Behavior" - Then I should see "We, the members of Connect CI, are committed to making participation in this community a harassment-free experience." - Then I should see "Reporting Guidelines" - Then I should see "If you believe someone is violating the code of conduct," - Then I should see "How to Submit a Report" - Then I should see "If you feel your safety is in jeopardy or the situation is an emergency" - Then I should see "License" - Then I should see "This code of conduct has been adapted from the US-RSE Association and NumFocus" diff --git a/tests/behat/features/templates/affinity_groups/affinity_group.feature b/tests/behat/features/templates/affinity_groups/affinity_group.feature deleted file mode 100644 index 2a5a593a1..000000000 --- a/tests/behat/features/templates/affinity_groups/affinity_group.feature +++ /dev/null @@ -1,169 +0,0 @@ -@templates -@api -@javascript - -Feature: Feature: test an Affinity Group page - An Affinity Group page should display the title, logo, description, and tags. - Groups that have specified an optional Slack, Q&A, GitHub, or email link should - display a button with the appropriate link. - This test checks the following: - Join is & Leave an - Join on Slack (if applicable, links to slack group) - Visit Q&A Platform (if applicable, links to Ask.CI) - Mailing List (if applicable, links to email) - Github Organization (e.g. /affinity-groups/open-ondemand) - Coordinators (links to individual peoples profiles) - Events (if none, filler text “No upcoming events”) - Associated Resources accordion shows information about the resource on ACCESS RP AGs - Recommended Resources accordion shows recommendations on Community AGs - - # TODO get this to work - # I have not be able to add an existing CI Link to the affinity group. - # The UI does not allow me to add an existing CI Link to the AG. - # The name of the CI Link gets appended with a variable suffix (like "ci-link-for-user-200 (5)") - # but I'm haven't figured out what that number should be ahead of time. - # Screenshot showing error on https://cyberteam-projects.slack.com/archives/C047PFB6UKE/p1694214896487699 - #Scenario: Admin user adds a CI Link to the AG ACCESS Support - Given I am logged in as a user with the "administrator" role - # add a KB Resource to an AG - When I go to "node/327/edit" - Then I should see "Edit Affinity Group ACCESS Support" - # this CI link is created by amp_dev.install - When I fill in "Display Knowledge Base Resources on your Affinity Group" with "ci-link-for-user-200" - And I wait 1 seconds - And I fill in "Slug" with "access-support" - When I press "Save" - And I wait 2 seconds - Then I should see "Affinity Group ACCESS Support has been updated." - When I follow "ci-link-for-user-200" - And I wait 1 seconds - Then I should see "ci-link-for-user-200" - - - Scenario: Unauthenticated user tests an individual Affinity Group page - Given I am not logged in - When I am on "/affinity-groups/cloud-computing" - And I wait for the page to be loaded - Then I should see an image with alt text "A blue cloud" - Then I should see "People who use or are considering the use of cloud resources" - # follow a Tags - When I follow "cloud-commercial" - Then I should be on "/tags/cloud-commercial" - - When I am on "/affinity-groups/cloud-computing" - # verify text & links - Then I should see "People who use or are considering the use of cloud resources" - # Verify Join button is disabled - Then I should see the ".affinity-group-buttons .btn.disabled" button is disabled - Then link "Slack" should contain "https://campuschampions.slack.com" - Then link "Q&A" should contain "https://ask.cyberinfrastructure.org/c/cloud-computing/66" - Then link "Email" should contain "mailto:jfossot@ncsu.edu" - Then I should see "Coordinators" - When I follow "Jacob Fosso Tande" - Then I should be on "/community-persona/5620" - Then I should see "research-facilitation" - Then I should see "Affinity Groups" - When I am on "/affinity-groups/cloud-computing" - Then link "How is storage performance for high I/O HPC jobs affected by running in the cloud?" should contain "https://ask.cyberinfrastructure.org/t/how-is-storage-performance-for-high-i-o-hpc-jobs-affected-by-running-in-the-cloud/797" - Then link "View on Ask.CI" should contain "https://ask.cyberinfrastructure.org/c/cloud-computing/66" - Then I should not see "View Members" - - - Scenario: Unauthenticated user tests another AG, with a CI dummy_ci_link and a Ci Topic and an Event - Given I am not logged in - When I am on "/affinity-groups/access-support" - Then I should see "Events" - # TODO need a future event for the following - # Then I should see "[4/04/2023 7:00 PM EDT]" - # Then link "How to Write a Successful" should contain "/events/6593" - # TODO - once able to add a KB Resource to this AG, uncomment the following - #Then I should see "ci-link-for-user-200" - Then link "Who can get an allocation to use HPC resources through ACCESS?" should contain "/t/who-can-get-an-allocation-to-use-hpc-resources-through-access/3019" - #When I click "How to Write a Successful" - #Then I should be on "/events/6593" - - - Scenario: Unauthenticated user tests an AG with an announcement - Given I am not logged in - When I am on "/affinity-groups/anvil" - Then I should see "Announcements" - Then I should see "12/16/22" - When I click "2022 - 2023 Holiday Support Schedule for Anvil" - Then I should be on "/announcements/2022-2023-holiday-support-schedule-anvil" - - - Scenario: Unauthenticated user tests an AG with a github link - Given I am not logged in - When I am on "/affinity-groups/open-ondemand" - Then link "GitHub" should contain "https://github.com/OSC/ondemand" - - - Scenario: Unauthenticated user tests an AG with a github link - Given I am not logged in - When I am on "/affinity-groups/anvil" - #todo: test for the GitHub link. - - - Scenario: Unauthenticated user tests another AG with recommended resources - Given I am not logged in - When I go to "/affinity-groups/ai-institutes-cyberinfrastructure" - # Test toggling a recommended resource - Then I should see "Recommended Resources" - When I go to "/affinity-groups/ai-institutes-cyberinfrastructure" - Then I should see "NCSA Delta GPU (Delta GPU)" - Then I should not see "The Delta GPU resource comprises 4 different node configurations" - When I press "NCSA Delta GPU (Delta GPU)" - Then I should see "The Delta GPU resource comprises 4 different node configurations" - When I press "NCSA Delta GPU (Delta GPU)" - Then I should not see "The Delta GPU resource comprises 4 different node configurations" - - - Scenario: Unauthenticated user tests another AG with Allocated CiDeR Resources - Given I am not logged in - # Test toggling visibility of subtext - When I go to "/affinity-groups/delta" - Then I should see an image with alt text "Delta ACCESS Affinity Group logo" - Then I should see "DELTA is a dedicated, ACCESS-allocated resource designed by HPE and NCSA" - Then I should see "Associated Resources" - Then I should see "NCSA Delta GPU (Delta GPU)" - Then I should not see "The Delta GPU resource comprises 4 different node configurations" - When I press "NCSA Delta GPU (Delta GPU)" - Then I should see "The Delta GPU resource comprises 4 different node configurations" - When I press "NCSA Delta GPU (Delta GPU)" - Then I should not see "The Delta GPU resource comprises 4 different node configurations" - - - Scenario: Unauthenticated user tests Ask.CI Recent Topics - Given I am not logged in - # Test an AG with an announcement - When I am on "/affinity-groups/anvil" - Then I should see "Ask.CI Recent Topics" - Then link "About the ACCESS-Anvil category" should contain "https://ask.cyberinfrastructure.org/t/about-the-access-anvil-category/2473" - - - Scenario: Authenticated user can join & leave an AG - Given I am logged in as a user with the "authenticated" role - When I am on "/affinity-groups/cloud-computing" - When I follow "Join" - And I wait 2 seconds - Then I should see "You have joined this affinity group" - And I wait 10 seconds - When I follow "Leave" - Then I should see "You have left this affinity group" - - - Scenario: AG Coordinator can see & download & email members - Given I am logged in with uid "5620" - And I wait 10 seconds - When I am on "/affinity-groups/cloud-computing" - When I follow "View Members" - Then I should be on "/affinity-groups/571/users/Cloud%20Computing?nid=189" - And I should see "Download CSV" - When I follow "Download CSV" - Then I should get a "200" HTTP response - - When I am on "/affinity-groups/cloud-computing" - When I follow "Email Affinity Group" - Then I should see "Use this form to send an email message to members of your Affinity Group through Constant Contact" - And I should see "About text formats" - And value of element "edit-actions-submit" should contain "Send" diff --git a/tests/behat/features/templates/affinity_groups/affinity_groups-request.feature b/tests/behat/features/templates/affinity_groups/affinity_groups-request.feature deleted file mode 100644 index a735db474..000000000 --- a/tests/behat/features/templates/affinity_groups/affinity_groups-request.feature +++ /dev/null @@ -1,43 +0,0 @@ -@templates -@api -@javascript - -Feature: As an authenticated User the "Request An Affinity Group" Page features -a form with fields including Affinity Group Name, Image, Coordinators, Tags, Short -description, Description, Conversation Link, Q&A Platform Link, Github Organization -Link, and Email List Link. Users can submit the form using the "Submit" button. - - Scenario: Authenticated user fills out affinity group form - Given I am logged in as a user with the "authenticated" role - When I go to "affinity-groups" - When I follow "Request an Affinity Group" - Then I should be on "form/affinity-group-request" - And I should see "Affinity Group Request" - And I should see "Affinity Group Name" - And I should see "Affinity Group Image" - And I should see "Coordinators" - And I should see "Type a few letters of the name and then select from the list of names presented" - And I should see "Tags" - And I should see "If you are an ACCESS RP, select one (or more) related CiDeR resources" - And I should see "Summary" - And I should see "Provide a short description that will appear on the Affinity Groups directory page." - Then I should see "Maximum 160 Characters Allowed" - And I should see "Description" - And I should see "Please include information about the intent of the group, what type of communications you expect the group will use, and how often." - And I should see "Slack" - And I should see "Provide a link to an associated Slack group, if there is one" - And I should see "Q&A Platform" - And I should see "Provide a link to Ask.CI, StackExchange, or other Q&A platform specific to the Affinity Group." - And I should see "Github Organization" - And I should see "Provide a link to Github if applicable." - And I should see "Email List or Contact" - And I should see "Provide a full URL to your email list or email contact for the Affinity" - When I fill in "affinity_group_name" with "TEST" - When I fill in "edit-tags" with "Login" - When I fill in "short_description" with "TEST" - When I fill in "project_description" with "TEST" - # op is the submit button - And I wait 1 second - When I press "Submit" - And I wait for the page to be loaded - # Then I should see "Thank you for your submission" diff --git a/tests/behat/features/templates/affinity_groups/affinity_groups.feature b/tests/behat/features/templates/affinity_groups/affinity_groups.feature deleted file mode 100644 index 46d13239b..000000000 --- a/tests/behat/features/templates/affinity_groups/affinity_groups.feature +++ /dev/null @@ -1,31 +0,0 @@ -@templates -@api -@javascript - -Feature: This Behat tests goes over the Affinity Groups Page which has the title "Affinity Groups." - TODO: The result table presents Affinity Group Images, names, descriptions, and tags (linked to individual tag pages). - TODO: The "Join" button changes to a greyed-out "Leave" button upon clicking - TODO: "Request an Affinity Group" button redirects to the affinity group request form. - - - Scenario: Unauthenticated user tests the affinity group - Given I am not logged in - When I go to "affinity-groups" - Then I should see "Affinity Groups" - #And I should see "Category" - #And I should see "Tags" - And I should see "Affinity Group" - And I should see "Description" - And I should see "Join" - And I should see "Request an Affinity Group" - - Scenario: Authenticated user tests the affinity group - Given I am logged in as a user with the "authenticated" role - When I go to "affinity-groups" - Then I should see "Affinity Groups" - #And I should see "Category" - #And I should see "Tags" - And I should see "Affinity Group" - And I should see "Description" - And I should see "Join" - And I should see "Request an Affinity Group" diff --git a/tests/behat/features/templates/blog/blog-add_tagged.feature b/tests/behat/features/templates/blog/blog-add_tagged.feature deleted file mode 100644 index 0448fdb3c..000000000 --- a/tests/behat/features/templates/blog/blog-add_tagged.feature +++ /dev/null @@ -1,27 +0,0 @@ -@templates -@api -@javascript - -Feature: add a blog post with a tag - To test adding a blog post with a tag - As admin - I can add a blog post with a tag and verify the blog appears for the tag - - Scenario: Add a "test-blog-post" for "login" tag and verify it appears - Given I am logged in as a user with the "administrator" role - When I go to "node/add/blog_post" - When I fill in "Title" with "test-blog-post" - # tag is "login" - When I select "682" from "edit-field-tags" - When I check "Published" - When I press "Save" - Then I should see "has been created" - And I should see "login" - - Given I am not logged in - When I go to "tags/login" - Then I should see "Blog Entries" - # TODO following should work - bug filed at https://cyberteamportal.atlassian.net/browse/D8-991 - # And I should see "test-blog-post" - - \ No newline at end of file diff --git a/tests/behat/features/templates/blog/blog-edit.feature b/tests/behat/features/templates/blog/blog-edit.feature deleted file mode 100644 index 655bc2a1f..000000000 --- a/tests/behat/features/templates/blog/blog-edit.feature +++ /dev/null @@ -1,23 +0,0 @@ -@templates -@api -@javascript - -Feature: add a tag to a blog post - To test adding a tag to a blog post - As admin - I can edit a blog post, add a tag, and verify the tag is added to the blog - - Scenario: Add a "test-blog-post" for "login" tag and verify it appears - Given I am logged in as a user with the "administrator" role - When I go to "blog/mghpcc-co-leads-two-birds-feather-sessions-sc21" - When I click "Edit" - Then I should see "Edit Blog post (region)" - # tag is "cloud-commercial" - When I select "193" from "edit-field-tags" - When I press "Save" - Then I should see "has been updated" - - When I go to "blog" - Then I should see "This year at SC21" - And I should see "cloud-commercial" - diff --git a/tests/behat/features/templates/ci-links/ci-links-1-add-admin.feature b/tests/behat/features/templates/ci-links/ci-links-1-add-admin.feature deleted file mode 100644 index 0f3c4309a..000000000 --- a/tests/behat/features/templates/ci-links/ci-links-1-add-admin.feature +++ /dev/null @@ -1,79 +0,0 @@ -@templates -@api -@javascript - -Feature: test KB Resources form - In order to test the KB Resources form - As a user of the administrator role - - Scenario: Administrator user fills out the KB Resources form - Given I am logged in as a user with the "administrator" role - # Clear Search api index - When I go to "/admin/config/search/search-api/index/ci_links" - When I click the "#edit-clear" element - When I click the "#edit-submit" element - - When I go to "/knowledge-base/resources" - When I follow "Add a Resource" - Then I should be on "/form/resource" - And I should see "Title" - And I should see "Category" - And I should see "Tags" - And I should see "Select one (or more) tags that apply." - And I should see "Skill Level" - And I should see "Description" - And I should see "Link to Resource" - And I should see "Link Title" - And I should see "Link URL" - And I should see "Add" - When I fill in "title" with "Test CI Link Title" - When I select "learning" from "category" - When I check "Approved" - # login tag - When I check "edit-tags-682" - When I check "Beginner" - When I fill in "Description" with "Test" - When I fill in "Link Title" with "Test" - When I fill in "Link URL" with "http://example.com" - When I press "Submit" - Then I should see "Test CI Link Title" - And I should see "Submission information" - And I should see "View" - And I should see "Edit" - And I should see "Title" - And I should see "Category" - And I should see "Tags" - And I should see "Skill Level" - And I should see "Description" - And I should see "Link to Resource" - #TODO: Doesnt always work, investigate - When I press "Submission information" - Then I should see "Submission Number" - And I should see "Submission ID" - And I should see "Submission UUID" - And I should see "Submission URI" - And I should see "Created" - And I should see "Completed" - And I should see "Changed" - And I should see "Remote IP address" - And I should see "Submitted by" - And I should see "Language" - And I should see "Is draft" - And I should see "Webform" - And I should see "Delete submission" - When I click "Edit" - Then I should get a "200" HTTP response - - Scenario: Administrator creates a simple KB Resource - Given I am logged in as a user with the "administrator" role - When I go to homepage - When I go to "/knowledge-base/resources" - When I follow "Add a Resource" - Then I should be on "form/resource" - Then I should see "Add" - When I fill in "title" with "test-login-resource" - When I select "learning" from "category" - When I check "Approved" - When I check "login" - When I press "Submit" - Then I should see "test-login-resource" diff --git a/tests/behat/features/templates/ci-links/ci-links-add-auth.feature b/tests/behat/features/templates/ci-links/ci-links-add-auth.feature deleted file mode 100644 index 77a17a372..000000000 --- a/tests/behat/features/templates/ci-links/ci-links-add-auth.feature +++ /dev/null @@ -1,59 +0,0 @@ -@templates -@api -@javascript - -Feature: On the Add a Resource Page for authenticated users, -the form includes fields for Resource Title, Category (dropdown), -Tags (checkboxes with helper text), Skill Level (checkboxes), -Description, and repeatable/reorderable sections for Link to -Resource with Link Title and Link URL (must include https). - - Scenario: Authenticated user fills out the resource form - Given I am logged in as a user with the "authenticated" role - When I go to "/knowledge-base/resources" - When I follow "Add a Resource" - Then I should be on "form/resource" - And I should see "Title" - And I should see "Category" - And I should see "Tags" - And I should see "Select one (or more) tags that apply." - And I should see "Skill Level" - And I should see "Description" - And I should see "Link to Resource" - And I should see "Link Title" - And I should see "Link URL" - And I should see "Add" - When I fill in "title" with "Test CI Link Title 2" - When I select "learning" from "category" - When I check "edit-tags-682" - When I check "Beginner" - When I fill in "Description" with "Test" - When I fill in "Link Title" with "Test" - When I fill in "Link URL" with "http://example.com" - When I press "Submit" - Then I should see "Test CI Link Title 2" - And I should see "Submission information" - And I should see "View" - And I should see "Edit" - And I should see "Title" - And I should see "Category" - And I should see "Tags" - And I should see "Skill Level" - And I should see "Description" - And I should see "Link to Resource" - #TODO: Doesnt always work, investigate - When I press "Submission information" - #Then I should see "Submission Number" - #And I should see "Submission ID" - #And I should see "Submission UUID" - #And I should see "Submission URI" - #And I should see "Created" - #And I should see "Completed" - #And I should see "Changed" - #And I should see "Remote IP address" - #And I should see "Submitted by" - #And I should see "Language" - #And I should see "Is draft" - #And I should see "Webform" - #And I should see "Delete submission" - When I click "Edit" diff --git a/tests/behat/features/templates/ci-links/ci-links-auth.feature b/tests/behat/features/templates/ci-links/ci-links-auth.feature deleted file mode 100644 index 9673c8bf6..000000000 --- a/tests/behat/features/templates/ci-links/ci-links-auth.feature +++ /dev/null @@ -1,16 +0,0 @@ -@templates -@api -@javascript -Feature: On the KB Resources Page for authenticated users, -functionalities comprise adding new CI links, conducting -case-insensitive searches, filtering by skill level, and -viewing content in List or Card View modes. Details include titles, -descriptions, categories, tags (first 3 linked), skill levels, and affinity groups. - - Scenario: Authenticated user Test the resource page - Given I am logged in as a user with the "authenticated" role - When I go to "/knowledge-base/resources" - Then I should see "Add a Resource" - Then I should see "Cyberinfrastructure professionals" - Then I should see "Test CI Link Title" - diff --git a/tests/behat/features/templates/ci-links/ci-links-indie-auth.feature b/tests/behat/features/templates/ci-links/ci-links-indie-auth.feature deleted file mode 100644 index 86a4a58dc..000000000 --- a/tests/behat/features/templates/ci-links/ci-links-indie-auth.feature +++ /dev/null @@ -1,20 +0,0 @@ -@templates -@api -@javascript -Feature: On the Individual CI Link Page for authenticated users, -the page features the Resource's title along with details such as Votes -(users can vote or rescind votes), Tags (linked to respective tag pages), -Skill Level(s), Description, and any links associated with the resource, -with links redirecting to their respective addresses. - - Scenario: Authenticated user Test the resource page - Given I am logged in as a user with the "authenticated" role - When I go to "/knowledge-base/resources" - And I wait 2 seconds - Then I should see "Test CI Link Title" - When I click the "summary:nth-child(1) > div:nth-child(1)" element - Then I should see "login" - Then I should see an image with alt text "Beginner" - Then I should see "Test" - When I click the "a[href='http://example.com']" element - Then I should get a "200" HTTP response diff --git a/tests/behat/features/templates/ci-links/ci-links-submission-process.feature b/tests/behat/features/templates/ci-links/ci-links-submission-process.feature deleted file mode 100644 index 1355c47b8..000000000 --- a/tests/behat/features/templates/ci-links/ci-links-submission-process.feature +++ /dev/null @@ -1,27 +0,0 @@ -@templates -@api - -Feature: test KB Resource submission page as an administrator user - In order to test the KB Resource submission page as an administrator user - - Scenario: Administrator user Test KB Resource submission page - Given I am logged in as a user with the "administrator" role - When I go to "/admin/structure/webform/manage/resource/results/submissions" - Then I should see "Test CI Link Title 2" - Then I should see "#" - Then I should see "Title" - Then I should see "Approved" - Then I should see "Category" - Then I should see "User" - Then I should see "Created" - Then I should see "Changed" - Then I should see "Link to Resource" - Then I should see "Operations" - When I click "Test CI Link Title 2" - When I click "Edit" - When I check "Approved" - When I wait 3 seconds - #op is the Save button - When I press "edit-submit" - And I wait 5 seconds - Then I should see "Submission updated in Knowledge Base Resources." diff --git a/tests/behat/features/templates/ci-links/ci-links-unauth.feature b/tests/behat/features/templates/ci-links/ci-links-unauth.feature deleted file mode 100644 index 14659b907..000000000 --- a/tests/behat/features/templates/ci-links/ci-links-unauth.feature +++ /dev/null @@ -1,19 +0,0 @@ -@templates -@api -@javascript - -Feature: This Behat test goes over the KB Resources Page, when accessed by an -unauthenticated user, this page does not display the "Add a Resource" button. The search -function works on approved KB Resources' titles only, is case-insensitive, and shows -a special message if no results are found. - There is also a text description at the top of the page. - - Scenario: Unauthenticated user tests the KB Resources page - Given I am not logged in - When I go to "/knowledge-base/resources" - Then I should see "Knowledge Base Resources" - Then I should see "Cyberinfrastructure professionals" - Then I should see "Add a Resource" - Then I should see "Test CI Link Title" - When I click "Add a Resource" - Then I should be on "/user/login?destination=/form/resource" diff --git a/tests/behat/features/templates/contact-user-auth.feature b/tests/behat/features/templates/contact-user-auth.feature deleted file mode 100644 index c967ff02f..000000000 --- a/tests/behat/features/templates/contact-user-auth.feature +++ /dev/null @@ -1,36 +0,0 @@ -@templates -@api -@javascript - -Feature: As an authenticated the Contact User Page is titled "Contact [user’s name]" and - includes a link to the user who will receive the contact. - The contact form requires the following fields: - Email Subject - Message - The reCAPTCHA does not appear on this page. - The "Send Yourself a copy" checkbox copies the user on the email to the contacted person. - Clicking the "Send Message" button sends the user's email, along with the provided fields, to the contacted person. - - Scenario: Authenticated user tests the contact user page - Given I am logged in as a user with the "authenticated" role - When I go to "people/List" - When I fill in "Search by Name" with "Julie Ma" - And I wait 4 seconds - Then I should see "Julie Ma" - When I click "Julie" - Then I should see "Julie Ma " - When I click "contact_user" - Then I should be on "/user/100/contact" - Then I should see "Contact Julie Ma" - When I click "Julie Ma" - Then I should be on "/user/julie-ma" - When I go to "/user/100/contact" - #Then I should see element with "edit-subject-0-value" selector - When I fill in "edit-subject-0-value" with "Test" - #Message ID is edit-message-0-value - When I fill in "edit-message-0-value" with "Test" - #Checkbox ID is edit-copy - Then I check "edit-copy" - Then I should not see "reCaptcha" - #op is the Submit button - Then I click "op" diff --git a/tests/behat/features/templates/footer/contact_us.feature b/tests/behat/features/templates/footer/contact_us.feature deleted file mode 100644 index 2b51e7ebf..000000000 --- a/tests/behat/features/templates/footer/contact_us.feature +++ /dev/null @@ -1,36 +0,0 @@ -@templates -@api -@javascript - -Feature: This Behat test goes over the Contact Us Page, -the contact form requires the following fields, all of which are required: -User's Name -Email Address -Email Subject -Message -Users need to fill out these fields to submit the contact form successfully. - - Scenario: Unauthenticated user fills out the contact us form - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - When I fill in "edit-name" with "Test" - When I fill in "edit-mail" with "Test@email.com" - When I fill in "edit-subject-0-value" with "Test" - When I fill in "edit-message-0-value" with "Test" - #op is the name for the Submit button - When I click "op" - Then I should get a "200" HTTP response - - - Scenario: Authenticated user fills out the contact us form - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - And I should see "Your name" - And I should see "Your email address" - When I fill in "edit-subject-0-value" with "Test" - When I fill in "edit-message-0-value" with "Test" - #op is the name for the Submit button - When I click "op" - Then I should get a "200" HTTP response diff --git a/tests/behat/features/templates/footer/footer.feature b/tests/behat/features/templates/footer/footer.feature deleted file mode 100644 index ac98a7b45..000000000 --- a/tests/behat/features/templates/footer/footer.feature +++ /dev/null @@ -1,24 +0,0 @@ -@templates -@api -@javascript - -Feature: test footer - Both unauthenticated and authenticated users tests footer for links Connect.CI & Contact us - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - Then I should see "Funded in part by the National Science Foundation" - And I should see "Copyright" - And I should see "Privacy Policy" - And I should see "Connect.CI" - And I should see "Contact Us" - - Scenario: User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - Then I should see "Funded in part by the National Science Foundation" - And I should see "Copyright" - And I should see "Privacy Policy" - And I should see "Connect.CI" - And I should see "Contact Us" diff --git a/tests/behat/features/templates/footer/regions_connect_ci.feature b/tests/behat/features/templates/footer/regions_connect_ci.feature deleted file mode 100644 index 971c5b99c..000000000 --- a/tests/behat/features/templates/footer/regions_connect_ci.feature +++ /dev/null @@ -1,46 +0,0 @@ -@templates -@api -@javascript - -Feature: For authenticated users: - -The Connect.Ci Page features a list of other Cyberteams, each linking to their respective Cyberteam prod sites. -It also displays a list of affinity groups, with clickable links to individual affinity groups. -Users have the option to toggle between card and list display formats. - - Scenario: User is on the Connect.CI Page - Given I am not logged in - When I go to "regions" - Then I should see "Connect.CI" - And I should see "Card View" - And I should see "List View" - And I should see "Programs" - And I should see "Affinity Groups" - When I follow "List View" - Then I should be on "connectci_list" - When I follow "Card View" - Then I should be on "/regions" - When I follow "CAREERS Cyberteam" - Then I should be on "https://careers-ct.cyberinfrastructure.org" - When I go to "regions" - When I follow "Ask.CI Moderators" - Then I should be on "/affinity-groups/askci-moderators" - - - Scenario: User is on the Connect.CI Page - Given I am logged in as a user with the "authenticated" role - When I go to "regions" - Then I should see "Connect.CI" - And I should see "Card View" - And I should see "List View" - And I should see "Programs" - And I should see "Affinity Groups" - When I follow "List View" - Then I should be on "connectci_list" - When I follow "Card View" - Then I should be on "/regions" - When I follow "CAREERS Cyberteam" - Then I should be on "https://careers-ct.cyberinfrastructure.org/" - When I go to "regions" - When I follow "Ask.CI Moderators" - Then I should be on "/affinity-groups/askci-moderators" diff --git a/tests/behat/features/templates/forms/issue-submit.feature b/tests/behat/features/templates/forms/issue-submit.feature deleted file mode 100644 index 547e91be0..000000000 --- a/tests/behat/features/templates/forms/issue-submit.feature +++ /dev/null @@ -1,59 +0,0 @@ -@templates -@api -@javascript - -Feature: For an authenticated or admin user, the "form/issue" page offers - a form featuring fields like Title, Region, Category, Expert - Category (on CAREERS), Priority, and Tags. Users can provide - Details and upload Files. After submission, an email notification - is sent to the NECT mailing list, and the ticket becomes visible - in the Help Desk, where only administrators can view and edit it. - - Scenario: Authenticated user fills out the enter ticket form - Given I am logged in as a user with the "authenticated" role - When I go to "form/issue" - Then I should see "Issue" - Then I should see "Ticket Data" - And I should see "Title" - And I should see "Region" - And I should see "Category" - And I should see "Priority" - And I should see "Status" - And I should see "Tags" - And I should see "Select one (or more) tags that apply." - Then I should see "Issue Summary" - And I should see "Details" - And I should see "Files" - When I fill in "title" with "TEST" - When I select "At-Large" from "region" - When I select "Bug report" from "category" - When I select "Critical" from "priority" - When I check "login" - When I fill in "details" with "TEST" - When I press "Submit" - Then I should see "Thank you! Your ticket has been submitted! We'll be in touch soon." - - Scenario: Administrator user fills out the enter ticket form - Given I am logged in as a user with the "administrator" role - When I go to "form/issue" - Then I should see "Issue" - Then I should see "Ticket Data" - And I should see "Title" - And I should see "Region" - And I should see "Category" - And I should see "Priority" - And I should see "Status" - And I should see "Tags" - And I should see "Select one (or more) tags that apply." - Then I should see "Issue Summary" - And I should see "Details" - And I should see "Files" - When I fill in "title" with "TEST" - When I select "At-Large" from "region" - When I select "Bug report" from "category" - When I select "Critical" from "priority" - When I select "Active" from "edit-status-select" - When I fill in "details" with "TEST" - When I press "Submit" - Then I should see "Thank you! Your ticket has been submitted! We'll be in touch soon." - diff --git a/tests/behat/features/templates/forms/join_ccmnet-auth.feature b/tests/behat/features/templates/forms/join_ccmnet-auth.feature deleted file mode 100644 index 0c09fa580..000000000 --- a/tests/behat/features/templates/forms/join_ccmnet-auth.feature +++ /dev/null @@ -1,17 +0,0 @@ -@templates -@api -@javascript - -Feature: test CCMNET Page and submission - - Scenario: Authenticated user tests the CCMNET Page - Given I am logged in as a user with the "authenticated" role - When I go to "/form/get-updates-about-ccmnet" - Then I should see "Get Updates about CCMNET" - Then I should see "Join the CCMNET Mailing list to receive periodic updates." - When I fill in "name[first]" with "Test" - When I fill in "name[last]" with "Test" - When I fill in "email" with "test@email.com" - When I wait 3 seconds - When I press "op" - Then I should see "Thanks for joining the CCMNet email list!" diff --git a/tests/behat/features/templates/get-research-computing-help.feature b/tests/behat/features/templates/get-research-computing-help.feature deleted file mode 100644 index 333976653..000000000 --- a/tests/behat/features/templates/get-research-computing-help.feature +++ /dev/null @@ -1,46 +0,0 @@ -@templates -@api -@javascript - -Feature: This Behat test goes over the Get Help Page, when accessed by an unauthenticated user - and an authenticated user. - The "Submit a Ticket" button redirects to the login page, and upon successful authentication, - the user is redirected to the new issue page. The "Find Learning Resources" button leads to - the resources page. Additionally, the "Join the Regional Slack Discussion" button (available - only under CAREERS, SWEETER, and Northeast sections) opens a new tab to join Slack, while the - "Ask The Community" button redirects to ask.ci in a new tab. - - Scenario: Unauthenticated user Test the Get Help Page - Given I am not logged in - When I go to "/get-research-computing-help" - Then I should see "Get Research Computing Help" - Then I should see "at the Regional Help Desk" - Then I should see "Ask a Question of the Community" - Then I should see "Find Learning Resources" - - When I click "at the Regional Help Desk" - Then I should see "You must log in to view this page" - - When I go to "/get-research-computing-help" - Then I click "Join the Regional Slack Discussion" - Then I click "Ask a Question of the Community" - When I click "Find Learning Resources" - Then I should see "Knowledge Base Resources" - - Scenario: Authenticated user Test the Get Help Page - Given I am logged in as a user with the "authenticated" role - When I go to "/get-research-computing-help" - Then I should see "Get Research Computing Help" - Then I should see "at the Regional Help Desk" - Then I should see "Ask a Question of the Community" - Then I should see "Find Learning Resources" - - When I click "at the Regional Help Desk" - Then I should see "Issue" - Then I should see "Ticket Data" - - When I go to "/get-research-computing-help" - Then I click "Join the Regional Slack Discussion" - Then I click "Ask a Question of the Community" - When I click "Find Learning Resources" - Then I should see "Knowledge Base Resources" diff --git a/tests/behat/features/templates/help-desk.feature b/tests/behat/features/templates/help-desk.feature deleted file mode 100644 index cb9f5bfae..000000000 --- a/tests/behat/features/templates/help-desk.feature +++ /dev/null @@ -1,37 +0,0 @@ -@templates -@api -@javascript - -Feature: Verify /help-desk as anonymous, authenticated and admin user - - Scenario: Verify essential features on code of conduct page - Given I am not logged in - When I go to "/help-desk" - Then I should get a "200" HTTP response - Then I should be on "user/login?destination=/help-desk" - And I should see "You must log in to view this page." - - Scenario: Verify essential features on code of conduct page - Given I am logged in as a user with the "authenticated" role - When I go to "/help-desk" - Then I should get a "403" HTTP response - And I should see "You are not authorized to access this page." - - Scenario: Admin makes sure Help Desk Page has all major features - Given I am logged in as a user with the "administrator" role - When I go to "/help-desk" - Then I should see "Help Desk" - #Below lines are commented out since not all domains have tickets - # TODO -- make domain specific versions of this test? - #Then I should see "There are currently no open tickets." - Then I should see "At-Large" - Then I should see "All Regions" - #Then I should see "Title" - #Then I should see "Region" - #Then I should see "Category" - #Then I should see "Priority" - #Then I should see "Details" - #Then I should see "Assigned" - #Then I should see "Status" - #Then I should see "View" - #Then I should see "Tags" diff --git a/tests/behat/features/templates/homepage/homepage_edit-account-auth.feature b/tests/behat/features/templates/homepage/homepage_edit-account-auth.feature deleted file mode 100644 index 045851ed1..000000000 --- a/tests/behat/features/templates/homepage/homepage_edit-account-auth.feature +++ /dev/null @@ -1,60 +0,0 @@ -@templates -@api -@javascript - -Feature: For an authenticated user, the Edit Account Page displays - the first and last name of the user as its title. The page features - tabs for navigating to "View" (user's profile page), "Edit" (current page), and "Security" (MFA setup page). - The fields on the page include Program (region), Email Address, Roles (checkboxes for various roles), - First Name, Last Name, preferred pronouns, bio, Picture (file upload), Institution, ACCESS Organization, - CV/Resume (file upload), Time Zone (dropdown), and Citizenships. - -Scenario: Authenticated user tests the edit account page - Given I am logged in with email "pecan@pie.org" - When I go to the homepage - Then I should see "My profile" - When I click "Edit my account" - Then I should see "Pecan Pie" - Then I should see "View" - Then I should see "Edit" - Then I should see "TFA" - Then I should see "Program" - Then I should see "Email Address" - Then value of element "edit-mail" should contain "pecan@pie.org" - Then I should see "Password strength" - Then I should see "Confirm Password" - Then I should see "First Name" - Then I should see "Last Name" - Then value of element "edit-field-user-preferred-pronouns-0-value" should contain "they/them" - Then value of element "edit-field-user-bio-0-value" should contain "I am a pie" - Then I should see "Picture" - Then value of element "edit-field-access-organization-0-target-id" should contain "MGHPCC (4300)" - Then I should see "CV" - Then I should see "Time Zone" - Then I should see "Citizenships" - - Scenario: Authenticated user tests the add interest/skills page - Given I am logged in with email "pecan@pie.org" - When I go to "/community-persona" - Then I should not see "ACCESS-account" - - # toggle interest in "ACCESS-account" - When I go to "/community-persona/add-interest" - Then I should see "Add Interest" - When I click the element with selector "ACCESS-account" - When I go to "/community-persona" - Then I should see "ACCESS-account" - When I go to "/community-persona/add-interest" - When I click the element with selector "ACCESS-account" - When I go to "/community-persona" - Then I should not see "ACCESS-account" - - # toggle skill with "ACCESS-account" - When I go to "/community-persona/add-skill" - When I click the element with selector "ACCESS-account" - When I go to "/community-persona" - Then I should see "ACCESS-account" - When I go to "/community-persona/add-skill" - When I click the element with selector "ACCESS-account" - When I go to "/community-persona" - Then I should not see "ACCESS-account" diff --git a/tests/behat/features/templates/homepage/homepage_headers-auth.feature b/tests/behat/features/templates/homepage/homepage_headers-auth.feature deleted file mode 100644 index 1788ef143..000000000 --- a/tests/behat/features/templates/homepage/homepage_headers-auth.feature +++ /dev/null @@ -1,43 +0,0 @@ -@templates -@api -@javascript - -Feature: For an authenticated user, the Headers include: - Top Menu bar - Search bar - The "Log In" and "Join" links are not shown. - The User menu, automatically expanded in laptop/desktop screen sizes, displays two submenus: - My Profile (links to the user's page) - Add/Edit Interests (links to the add interests page) - Add/Edit Skills (links to the add skills page) - Edit My Account (links to the edit account page) - Change Password (links to the password reset form) - Project Submissions (links to the user's project submissions page) - "Cyberteam Logo link" that redirects to the homepage. - Each region site has its own logo linked accordingly. - - Scenario: Verify the Log Out button links to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I click "Log out" - Then I should be on the homepage - And I should see "Log in" - - Scenario: Verify the My profile button - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I click "My profile" - Then I should see "Edit My Account" - And I should see "Add/Edit Interests" - And I should see "Add/Edit Skills" - And I should see "Change Password" - And I should see "Project Submissions" - - Scenario: Verify the Search field works as expected - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I fill in "edit-keys" with "asdfasdfasdf" - When I press "Search" - Then I should be on "search/node" - And I should see "asdfasdfasdf" - And I should see "Your search yielded no results" diff --git a/tests/behat/features/templates/homepage/homepage_headers-unauth.feature b/tests/behat/features/templates/homepage/homepage_headers-unauth.feature deleted file mode 100644 index e814f3101..000000000 --- a/tests/behat/features/templates/homepage/homepage_headers-unauth.feature +++ /dev/null @@ -1,32 +0,0 @@ -@templates -@api -@javascript - -Feature: verify headers for non-authenticated user - To test headers - As a non-authenticated user - Verify Search, Log In, Join - - Scenario: Verify the Login button links to login flow - Given I am not logged in - When I am on the homepage - Then I should not see "My Profile" - When I click "Log in" - Then I should be on "user/login" - And I should see "Login with your Campus Champion or Cyberteam account." - - Scenario: Verify the Join button links to join - Given I am not logged in - When I am on the homepage - When I click "Join" - Then I should be on "user/register" - And I should see "Please select an account type below to create" - - Scenario: Verify the Search field works as expected - Given I am not logged in - When I am on the homepage - When I fill in "edit-keys" with "asdfasdfasdf" - When I press "Search" - Then I should be on "search/node" - And I should see "asdfasdfasdf" - And I should see "Your search yielded no results" diff --git a/tests/behat/features/templates/homepage/homepage_logo.feature b/tests/behat/features/templates/homepage/homepage_logo.feature deleted file mode 100644 index 186cb81b0..000000000 --- a/tests/behat/features/templates/homepage/homepage_logo.feature +++ /dev/null @@ -1,9 +0,0 @@ -@templates -@api -@javascript - -Feature: Verify the main icon loads - - Scenario: Verify the main icon loads - When I am on the homepage - Then all images with selector ".logo" should have alt text diff --git a/tests/behat/features/templates/homepage/homepage_menus.feature b/tests/behat/features/templates/homepage/homepage_menus.feature deleted file mode 100644 index 4ea695710..000000000 --- a/tests/behat/features/templates/homepage/homepage_menus.feature +++ /dev/null @@ -1,55 +0,0 @@ -@templates -@api -@javascript -Feature: For anonymous & authenticated user, the Menu Items include: - About Us link (redirects to the about us page) - Community link - Get Help page link (redirects to the Get Research Computing Help page) - Projects page link (redirects to the projects/engagements page) - Tags page link (redirects to the tags list page) - - Scenario: Unauthenticated user navigates through navigation menus - Given I am not logged in - When I am on the homepage - # TODO - broken - #Menu tab is in mobile form - Then I should see "About Us" - And I should see "Community" - And I should see the link "Get Help" - And I should see the link "Projects" - #And I should see the link "Tags" - - When I am on the homepage - When I click "Get Help" - Then I should see "Get Research Computing Help" - - When I am on the homepage - When I click "Projects" - Then I should see "Project" - - When I am on the homepage - When I click "Tags" - Then I should see "Tags" - - Scenario: Authenticated user navigates through navigation menus - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - # TODO - broken - #Menu tab is in mobile form - Then I should see "About Us" - And I should see "Community" - And I should see the link "Get Help" - And I should see the link "Projects" - #And I should see the link "Tags" - - When I am on the homepage - When I click "Get Help" - Then I should see "Get Research Computing Help" - - When I am on the homepage - When I click "Projects" - Then I should see "Project" - - When I am on the homepage - When I click "Tags" - Then I should see "Tags" diff --git a/tests/behat/features/templates/homepage/homepage_quick-links-auth.feature b/tests/behat/features/templates/homepage/homepage_quick-links-auth.feature deleted file mode 100644 index 867b22e4e..000000000 --- a/tests/behat/features/templates/homepage/homepage_quick-links-auth.feature +++ /dev/null @@ -1,44 +0,0 @@ -@templates -@api -@javascript - -Feature: The Front Page includes a site slogan, which is region-specific, - and for the CAREERS region, there's an "About Us" button leading to the About Us page. - - For the Regional Sites Front Page, it features: - - Quick Links - Get Help Icon - "Ask the Community" (redirects to http://ask.ci in a new tab) - "Find Learning Resources" link (redirects to the resources page) - Submit a Project Icon - "Project Submission Form" link (redirects to add a new project page) - "All Projects" link (redirects to the projects page) - "Find Projects by Tag" link (redirects to the tags page) - "Join the Team" icon is not shown - "Featured Projects Title" links to the projects page, - displaying only projects from the current or At-Large regions. - - Scenario: Authenticated user tests the quick links - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - Then I should see the link "Ask the Community" - When I click "Ask the Community" - Then I should be on "https://ask.cyberinfrastructure.org/" - When I am on the homepage - When I click "Find Knowledge Base Resources" - Then I should be on "/knowledge-base/resources" - When I am on the homepage - Then I should see the link "Project Submission Form" - When I click "Project Submission Form" - Then I should be on "/form/project" - When I am on the homepage - Then I should see the link "All Projects" - When I click "All Projects" - Then I should be on "projects" - When I am on the homepage - Then I should see the link "Find Projects by Tag" - When I click "Find Projects by Tag" - Then I should be on "tags" - When I am on the homepage - Then I should not see "Join the team" diff --git a/tests/behat/features/templates/homepage/homepage_quick-links-unauth.feature b/tests/behat/features/templates/homepage/homepage_quick-links-unauth.feature deleted file mode 100644 index 286fa8281..000000000 --- a/tests/behat/features/templates/homepage/homepage_quick-links-unauth.feature +++ /dev/null @@ -1,41 +0,0 @@ -@templates -@api -@javascript - -Feature: test quick links on home page - In order to test the quick links - As a user of the unauthenticated role - - Scenario: Unauthenticated user tests the quick links - Given I am not logged in - When I am on the homepage - Then I should see the link "Ask the Community" - When I click "Ask the Community" - Then I should be on "https://ask.cyberinfrastructure.org/" - When I am on the homepage - When I click "Find Learning Resources" - Then I should be on "/knowledge-base/resources" - When I am on the homepage - Then I should see the link "Join as Student" - When I click "Join as Student" - Then I should be on "user/register/student" - When I am on the homepage - Then I should see the link "Join as Mentor" - When I click "Join as Mentor" - Then I should be on "user/register/mentor" - When I am on the homepage - Then I should see the link "Join as Researcher" - When I click "Join as Researcher" - Then I should be on "user/register/researcher" - When I am on the homepage - Then I should see the link "Project Submission Form" - When I click "Project Submission Form" - Then I should be on "user/login?destination=/form/project" - When I am on the homepage - Then I should see the link "All Projects" - When I click "All Projects" - Then I should be on "projects" - When I am on the homepage - Then I should see the link "Find Projects by Tag" - When I click "Find Projects by Tag" - Then I should be on "tags" diff --git a/tests/behat/features/templates/news/news-auth.feature b/tests/behat/features/templates/news/news-auth.feature deleted file mode 100644 index 0c0c88f56..000000000 --- a/tests/behat/features/templates/news/news-auth.feature +++ /dev/null @@ -1,30 +0,0 @@ -@templates -@api -@javascript - -Feature: The News Page contains a block for Press Releases and another block for Published Articles. -However, the page does not display the "+ Press Release" and "+ Published Article" buttons. -The Press Releases display the published date, title, byline, and publisher. Each individual -Press Release also shows a text editor view of the file. On the other hand, the Published -Articles display the published date, publication, title, and author. - - Scenario: News page displays Articles and Releases - Given I am logged in as a user with the "authenticated" role - When I go to "news" - Then I should see "News" - And I should see "Published Articles" - And I should see "Press Releases" - And I should not see "+ Press Release" - And I should not see "+ Published Article" - - Scenario: A MGHPCC news page shows title date and byline - Given I am logged in as a user with the "authenticated" role - When I go to "news/article/mghpcc-explores-strategies-sc21-increase-hpc-access-and-collaboration" - Then I should see "MGHPCC Explores Strategies" - And I should see "Nov 12, 2021" - And I should see "John Goodhue, will be co-leading another BOF session" - - Scenario: A specific press release shows expected title - Given I am logged in as a user with the "authenticated" role - When I go to "news/press/tools-expand-high-performance-research-computing-be-explored-regional-conference" - Then I should see "Tools to Expand High Performance" diff --git a/tests/behat/features/templates/news/news-unauth.feature b/tests/behat/features/templates/news/news-unauth.feature deleted file mode 100644 index 3faeb15ec..000000000 --- a/tests/behat/features/templates/news/news-unauth.feature +++ /dev/null @@ -1,25 +0,0 @@ -@templates -@api -@javascript - -Feature: news page contains "News" - news page contains "News" - - Scenario: News page displays Articles and Releases - Given I am not logged in - When I go to "news" - Then I should see "News" - And I should see "Published Articles" - And I should see "Press Releases" - - Scenario: A MGHPCC news page shows title date and byline - Given I am not logged in - When I go to "news/article/mghpcc-explores-strategies-sc21-increase-hpc-access-and-collaboration" - Then I should see "MGHPCC Explores Strategies" - And I should see "Nov 12, 2021" - And I should see "John Goodhue, will be co-leading another BOF session" - - Scenario: A specific press release shows expected title - Given I am not logged in - When I go to "news/press/tools-expand-high-performance-research-computing-be-explored-regional-conference" - Then I should see "Tools to Expand High Performance" diff --git a/tests/behat/features/templates/people/people-card-auth.feature b/tests/behat/features/templates/people/people-card-auth.feature deleted file mode 100644 index 17d938d5a..000000000 --- a/tests/behat/features/templates/people/people-card-auth.feature +++ /dev/null @@ -1,70 +0,0 @@ -@templates -@api -@javascript - -Feature: test people page Card view w/ filters - In order to test the people page from Card View - TODO: make sure this test verifies the following: - Search works on people’s first and last names as expected - Roles radio buttons - Student-facilitator restricts search results to accounts with the student-facilitator role - Mentor restricts search results to accounts with the mentor role - Researcher/Educator restricts search results to accounts with the researcher/educator role - Steering Committee restricts search results to accounts with the steering committee role - Regional Facilitator restricts search results to accounts with the regional facilitator role - - Scenario: Authenticated user tests the people page in Card View and filters - Given I am logged in as a user with the "authenticated" role - When I go to "/people/card" - Then I should see "People" - And I should see "Programs" - And I should see "Roles" - And I wait 6 seconds - When I fill in "roles_target_id[]" with "ci systems engineer" - And I wait 8 seconds - Then I should see "Affinity Groups" - And I should see "Skills" - And I should see "List view" - - When I fill in "Search the people database" with "testing123" - And I wait 4 seconds - Then I should see "No matches found in People." - - - - When I fill in "Search the people database" with "julie" - And I wait 4 seconds - Then I should see "Julie Ma" - - - - When I fill in "Search the people database" with "Northeast" - And I wait 4 seconds - Then I should see "Northeast" - - When I fill in "Search the people database" with " " - And I wait 4 seconds - - When I fill in "edit-roles-target-id" with "Student-facilitator" - And I wait 10 seconds - Then I should see "Student-facilitator" - - When I fill in "edit-roles-target-id" with "Mentor" - And I wait 10 seconds - Then I should see "Mentor" - - When I fill in "edit-roles-target-id" with "Researcher/Educator" - And I wait 10 seconds - Then I should see "Researcher/Educator" - - When I fill in "edit-roles-target-id" with "Steering Committee" - And I wait 10 seconds - Then I should see "Steering Committee" - - When I fill in "edit-roles-target-id" with "Regional Facilitator" - And I wait 10 seconds - Then I should see "Regional Facilitator" - - When I fill in "edit-roles-target-id" with "Student-facilitator" - And I wait 10 seconds - Then I should see "Student-facilitator" diff --git a/tests/behat/features/templates/people/people-card-unauth.feature b/tests/behat/features/templates/people/people-card-unauth.feature deleted file mode 100644 index c6afbd24a..000000000 --- a/tests/behat/features/templates/people/people-card-unauth.feature +++ /dev/null @@ -1,62 +0,0 @@ -@templates -@api -@javascript -Feature: test people page Card view w/ filters - Unauthenticated user tests the people page from Card View: - Result cards display: First & last name (link to user’s page) - User’s region (if any),User profile image, User’s roles, User’s institution, User with skills (tags), - Card View button is grayed out, List View button appears, - Has no search restrictions on program. If you search you should see people from any program. - Search works on people’s first and last names as expected - Filter by Role multiselect: - Student-facilitator restricts search results to accounts with the student-facilitator role - Mentor restricts search results to accounts with the mentor role - Researcher/Educator restricts search results to accounts with the researcher/educator role - Steering Committee restricts search results to accounts with the steering committee role - Regional Facilitator restricts search results to accounts with the regional facilitator role - - Scenario: Unauthenticated user tests the people page in Card View and filters - Given I am not logged in - When I go to "people/Card" - Then I should see "People" - And I should see "Filter By Program" - And I should see "Search the people database" - When I fill in "roles_target_id[]" with "mentor" - Then I should see "mentor" - When I fill in "roles_target_id[]" with " " - And I should see "Card View" - And I should see "Programs" - And I should see "Roles" - When I fill in "roles_target_id[]" with "ci systems engineer" - And I should see "Affinity Groups" - And I should see "Skills" - And I should see "List view" - When I fill in "Search the people database" with "testing123" - And I wait 4 seconds - Then I should see "No matches found in People." - When I fill in "Search the people database" with "julie" - And I wait 4 seconds - Then I should see "Julie Ma" - When I fill in "Search the people database" with "Northeast" - And I wait 4 seconds - Then I should see "Northeast" - When I fill in "Search the people database" with " " - And I wait 4 seconds - When I fill in "edit-roles-target-id" with "Student-facilitator" - And I wait 4 seconds - Then I should see "Student-facilitator" - When I fill in "edit-roles-target-id" with "Mentor" - And I wait 4 seconds - Then I should see "Mentor" - When I fill in "edit-roles-target-id" with "Researcher/Educator" - And I wait 4 seconds - Then I should see "Researcher/Educator" - When I fill in "edit-roles-target-id" with "Steering Committee" - And I wait 4 seconds - Then I should see "Steering Committee" - When I fill in "edit-roles-target-id" with "Regional Facilitator" - And I wait 4 seconds - Then I should see "Regional Facilitator" - When I fill in "edit-roles-target-id" with "Student-facilitator" - And I wait 4 seconds - Then I should see "Student-facilitator" diff --git a/tests/behat/features/templates/people/people-indie-auth.feature b/tests/behat/features/templates/people/people-indie-auth.feature deleted file mode 100644 index b831067c9..000000000 --- a/tests/behat/features/templates/people/people-indie-auth.feature +++ /dev/null @@ -1,43 +0,0 @@ -@templates--DISABLED_BROKEN -@api -@javascript -Feature: Tested as an authenticated user the Individual Profile Page showcases -key details such as name, institution, current degree program, roles, image, -and a contact button. It also presents user interests and skills (linked to respective tag pages), -user projects (linked to project pages), and HPC experience, while omitting cards for sections -without content like interests, projects, skills, or HPC experience. - - Scenario: Authenticated user tests the individual people page - Given I am logged in as a user with the "authenticated" role - When I go to "people/List" - When I fill in "Search by Name" with "Julie Ma" - And I wait 4 seconds - Then I should see "Julie Ma" - When I click "Julie" - Then I should see "Julie Ma " - #Image is not tested - #Then I should see "img-fluid img-thumbnail w-100" - Then I should see "MGHPCC" - Then I should see "mentor" - Then I should see "Skills" - Then I should see "Affinity Groups" - Then I should see "Contact" - #Projects is not shown in screenshots or on actual page - #Then I should see "Projects" - Then I should not see "HPC Experience" - Then I should see "Interest" - Then I should see "aws" - Then I should see "azure" - When I click "Contact" - Then I should be on "/user/100/contact" - - - #Scenario: Authenticated user tests the user individual page - #Given I am logged in as a user with the "authenticated" role - #When I go to "people/List" - #When I fill in "Search by Name" with "mrfYEeUO" - #And I wait 4 seconds - # Then I should see "mrfYEeUO" - #User test name cannot be identified - - diff --git a/tests/behat/features/templates/people/people-indie-unauth.feature b/tests/behat/features/templates/people/people-indie-unauth.feature deleted file mode 100644 index 92b972254..000000000 --- a/tests/behat/features/templates/people/people-indie-unauth.feature +++ /dev/null @@ -1,24 +0,0 @@ -@templates -@api -@javascript -Feature: test individual people page - Verify an individual profile page has expected content. - - Scenario: Unauthenticated user tests the individual people page - Given I am not logged in - When I go to "people/List" - When I fill in "Search by Name" with "Julie Ma" - And I wait 4 seconds - Then I should see "Julie Ma" - When I click "Julie" - Then I should see "Julie Ma " - Then I should see "MGHPCC" - Then I should see "Affinity Group Leader" - Then I should see "Skills" - Then I should see "Affinity Groups" - #Projects section does not show in testing - #Then I should see "Projects" - Then I should not see "HPC Experience" - Then I should see "Interest" - #It reads the Contact Us at the footer - #Then I should not see "Contact" diff --git a/tests/behat/features/templates/people/people-list-auth.feature b/tests/behat/features/templates/people/people-list-auth.feature deleted file mode 100644 index 23430dd9d..000000000 --- a/tests/behat/features/templates/people/people-list-auth.feature +++ /dev/null @@ -1,77 +0,0 @@ -@templates -@api -@javascript -Feature: This Behat test is authenticated and goes over the People Page - List Views, the features remain consistent: -searching by first and last names (case-insensitive) with a message for no results, and a table displaying -names (linked), profile images, roles, institutions, and tags. The Roles radio buttons allow role-specific filtering. - - Scenario: Authenticated user tests the people page - Given I am logged in as a user with the "authenticated" role - When I go to "people/list" - And I wait 4 seconds - Then I should see "People" - And I should see "Picture" - And I should see "First Name" - And I should see "Last Name" - And I should see "Institution" - And I should see "Program" - And I should see "Roles" - And I should see "Affinity Groups" - And I should see "Tags" - - And I should see "Card view" - - When I fill in "Search by Name" with "test123" - And I wait 4 seconds - Then I should see "There are currently no People" - - When I fill in "Search by Name" with "Julie" - And I wait 4 seconds - Then I should see "Julie Ma" - - When I fill in "Search by Name" with "Northeast" - And I wait 4 seconds - Then I should see "Northeast" - When I fill in "Search by Name" with " " - - When I fill in "Filter by Role" with " " - And I wait 4 seconds - - When I fill in "Filter by Role" with "Mentor" - And I wait 4 seconds - Then I should see "Mentor" - - When I fill in "Filter by Role" with " " - And I wait 4 seconds - - When I fill in "Filter by Role" with "Researcher/Educator" - And I wait 4 seconds - Then I should see "Researcher/Educator" - - When I fill in "Filter by Role" with " " - And I wait 4 seconds - - When I fill in "Filter by Role" with "Steering Committee" - And I wait 4 seconds - Then I should see "Steering Committee" - - When I fill in "Filter by Role" with " " - And I wait 4 seconds - - When I fill in "Filter by Role" with "Regional Facilitator" - And I wait 4 seconds - Then I should see "Regional Facilitator" - - When I fill in "Filter by Role" with " " - And I wait 4 seconds - - When I fill in "Filter by Role" with "Student-facilitator" - And I wait 4 seconds - Then I should see "student facilitator" - - When I fill in "Filter by Role" with " " - And I wait 4 seconds - - When I fill in "Filter by Role" with "rcf" - And I wait 4 seconds - Then I should see "rcf" diff --git a/tests/behat/features/templates/people/people-list-unauth.feature b/tests/behat/features/templates/people/people-list-unauth.feature deleted file mode 100644 index ffdd5d624..000000000 --- a/tests/behat/features/templates/people/people-list-unauth.feature +++ /dev/null @@ -1,64 +0,0 @@ -@templates -@api -@javascript -Feature: test people page list view w/ filters - Verify "people/List" page has all the expected headers, and that search and - filtering work as expected. - - - Scenario: Unauthenticated user tests the people page - Given I am not logged in - When I go to "people/List" - - - Then I should see "People" - - And I should see "Picture" - And I should see "First Name" - And I should see "Last Name" - And I should see "Institution" - And I should see "Program" - And I should see "Roles" - And I should see "Affinity Groups" - And I should see "Tags" - - - And I should see "Card view" - - When I fill in "Search by Name" with "test123" - And I wait 4 seconds - Then I should see "There are currently no People" - - - - When I fill in "Search by Name" with "Julie" - And I wait 4 seconds - Then I should see "Julie Ma" - - - - When I fill in "Search by Name" with "Northeast" - And I wait 4 seconds - Then I should see "Northeast" - When I fill in "Search by Name" with " " - - When I fill in "Filter by Role" with "Mentor" - And I wait 4 seconds - Then I should see "Mentor" - - When I fill in "Filter by Role" with "Researcher/Educator" - And I wait 4 seconds - Then I should see "Researcher/Educator" - - When I fill in "Filter by Role" with "Steering Committee" - And I wait 4 seconds - Then I should see "Steering Committee" - - When I fill in "Filter by Role" with "Regional Facilitator" - And I wait 4 seconds - Then I should see "Regional Facilitator" - - When I fill in "Filter by Role" with "Student-facilitator" - And I wait 4 seconds - Then I should see "Student-facilitator" - Then I should see "rcf" diff --git a/tests/behat/features/templates/projects/projects-1-submit-admin.feature b/tests/behat/features/templates/projects/projects-1-submit-admin.feature deleted file mode 100644 index 465556e4e..000000000 --- a/tests/behat/features/templates/projects/projects-1-submit-admin.feature +++ /dev/null @@ -1,154 +0,0 @@ -@templates -@api -@javascript - -Feature: add a test project via the form - As admin, add a project - TODO: ensure testing of the following: - Login to Add New Project Button - Search works on Project Title of approved projects only, case-insensitive - Search displays a special message if no results are found - Tags on projects in carousal are clickable and show tag results - Results are displayed on a table with the following columns : - Project Title (links to project page) - Project Institution - Project Owner (links to user’s page) - Tags (each tag links to its own tag page) - Status - Project Lead - - Scenario: Assigning mentor & student facilitator to user "Test Smith" - Given I am logged in as a user with the "administrator" role - # user 1998 is "Test Smith" - When I go to "/user/1998/edit" - When I fill in "First Name" with "Test" - When I fill in "Last Name" with "Smith" - When I fill in "Organization" with "MGHPCC" - When I check "mentor" - When I check "student-facilitator" - When I check "researcher/educator" - # save so that the academic status field is visible. - When I press "op" - And I wait 2 seconds - When I go to "/user/1998/edit" - When I select "1st year undergraduate" from "edit-field-academic-status" - # "op" is the name of the submit button. - When I press "op" - And I wait 2 seconds - Then I should see "The changes have been saved." - - - Scenario: Add an "in-progress" project and verify it is created - - Given I am logged in as a user with the "administrator" role - When I go to the homepage - When I go to "/projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "Project Title" with "test-create-project-title" - When I check "At-Large" - # tags: - When I check "login" - When I select "In Progress" from "Status" - When I fill in "First" with "test-first-name" - When I fill in "Last" with "test-last-name" - When I fill in "Email" with "test@email.com" - When I fill in "Mobile Phone" with "555-1212" - When I fill in "Phone" with "555-1213" - When I fill in "Ext:" with "333" - When I fill in "edit-mentor-items-0-item-" with "Test Smith (1998)" - When I fill in "Project Description" with "test project description" - When I select "One programming class" from "Student Facilitator Programming Skill Level" - When I fill in "Project Institution" with "test Project Institution" - When I fill in "Address" with "test Address" - When I fill in "Address 2" with "test Address 2" - When I fill in "City/Town" with "test City/Town" - When I select "Alabama" from "State/Province" - When I fill in "ZIP/Postal Code" with "98765" - When I select "CR-Yale" from "Anchor Institution" - When I fill in "Preferred Start Date" with "10/04/2022" - When I check "Start as soon as possible." - When I fill in "Expected Project Duration (in months)" with "33" - When I fill in "Launch Presentation Date" with "10/05/2022" - When I fill in "Wrap Presentation Date" with "10/06/2022" - When I fill in "Github Contributions Link" with "http://test.com" - When I fill in "Planned Portal Contributions (if any)" with "test Planned Portal Contributions" - When I fill in "Planned Publications (if any)" with "test Planned Publications (if any)" - When I fill in "What will the Cyberteam program learn from this project?" with "test What will the Cyberteam program learn" - When I fill in "HPC resources needed to complete this project?" with "test HPC resources needed to complete" - When I fill in "Notes" with "test Notes" - When I click "Final Report" - When I fill in "What is the impact on the development of the principal discipline(s) of the project?" with "test What is the impact on the development" - - When I press "Submit" - And I wait 5 seconds - Then I should see "test-create-project-title" - And I should see "login" - And I should see "At-Large" - And I should see "In Progress" - And I should see "test@email.com" - And I should see "test Project Institution" - And I should see "test Address" - And I should see "test Address 2" - And I should see "test City/Town" - And I should see "Alabama" - And I should see "98765" - And I should see "test project description" - And I should see "http://test.com" - And I should see "33" - - Scenario: Add a Recruiting project to verify it is created - Given I am logged in as a user with the "administrator" role - When I go to "projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "Project Title" with "test-create-recruiting-project-title" - When I check "At-Large" - # tags: - When I check "login" - When I select "Recruiting" from "Status" - When I fill in "First" with "test-first-name" - When I fill in "Last" with "test-last-name" - When I fill in "Email" with "test@email.com" - When I fill in "Mobile Phone" with "555-1212" - When I fill in "Phone" with "555-1213" - When I fill in "Ext:" with "333" - When I fill in "Project Description" with "test project description" - When I fill in "Project Institution" with "test Project Institution" - When I fill in "Address" with "test Address" - When I fill in "Address 2" with "test Address 2" - When I fill in "City/Town" with "test City/Town" - When I select "Alabama" from "State/Province" - When I fill in "ZIP/Postal Code" with "98765" - When I select "CR-Yale" from "Anchor Institution" - When I fill in "Preferred Start Date" with "10/04/2022" - When I check "Start as soon as possible." - When I fill in "Expected Project Duration (in months)" with "33" - When I fill in "Launch Presentation Date" with "10/05/2022" - When I fill in "Wrap Presentation Date" with "10/06/2022" - When I fill in "Github Contributions Link" with "http://test.com" - When I fill in "Planned Portal Contributions (if any)" with "test Planned Portal Contributions" - When I fill in "Planned Publications (if any)" with "test Planned Publications (if any)" - When I fill in "What will the Cyberteam program learn from this project?" with "test What will the Cyberteam program learn" - When I fill in "HPC resources needed to complete this project?" with "test HPC resources needed to complete" - When I fill in "Notes" with "test Notes" - When I click "Final Report" - When I fill in "What is the impact on the development of the principal discipline(s) of the project?" with "test What is the impact on the development" - - When I press "Submit" - Then I should see "test-create-recruiting-project-title" - And I should see "login" - And I should see "At-Large" - And I should see "Recruiting" - And I should see "test@email.com" - And I should see "test Project Institution" - And I should see "test Address" - And I should see "test Address 2" - And I should see "test City/Town" - And I should see "Alabama" - And I should see "98765" - And I should see "test project description" - And I should see "http://test.com" - And I should see "33" diff --git a/tests/behat/features/templates/projects/projects-1-submit-auth.feature b/tests/behat/features/templates/projects/projects-1-submit-auth.feature deleted file mode 100644 index 8ba7db07a..000000000 --- a/tests/behat/features/templates/projects/projects-1-submit-auth.feature +++ /dev/null @@ -1,45 +0,0 @@ -@templates -@api -@javascript - -Feature: test submit project form - As an authenticated user, test the submit project form - - Scenario: Authenticated user fills out the submit project form - Given I am logged in as a user with the "authenticated" role - When I go to "projects" - When I follow "Submit New Project" - Then I should be on "form/project" - And I should see "Project Title" - And I should see "Program" - And I should see "Project Leader" - And I should see "First" - And I should see "Last" - And I should see "Email" - And I should see "Mobile Phone" - And I should see "Work Phone" - And I should see "Ext:" - Then I should see "Project Information" - And I should see "First" - And I should see "Last" - And I should see "Email" - And I should see "Mobile Phone" - And I should see "Work Phone" - Then I should see "Project Information" - And I should see "Project Description" - And I should see "Provide a description of the project and its history, progress, and/or current status." - When I fill in "project_title" with "TEST" - When I check "At-Large" - When I fill in "project_leader[first]" with "TEST" - When I fill in "project_leader[last]" with "TEST" - When I fill in "email" with "TEST@TEST.COM" - When I fill in "project_description" with "TEST" - When I press "Submit" - Then I should see "TEST" - And I should see "Project Information" - And I should see "Edit Project" - And I should see "Project Status" - And I should see "Project Region" - And I should see "Submitted By" - And I should see "Project Email" - And I should see "Project Description" diff --git a/tests/behat/features/templates/projects/projects-engage-auth.feature b/tests/behat/features/templates/projects/projects-engage-auth.feature deleted file mode 100644 index a23b548ea..000000000 --- a/tests/behat/features/templates/projects/projects-engage-auth.feature +++ /dev/null @@ -1,43 +0,0 @@ -@templates -@api -@javascript - -Feature: test projects page as authenticated user - TODO: make sure the following is tested: - Add New Project button links to new project page - Search works on Project Title of approved projects only, case-insensitive - Results are displayed on a table with the following columns : - Project Title (sortable, links to project page) - Project Institution (sortable) - Project Owner (links to user’s page) - Tags (each tag links to its own tag page - Status (sortable) - Project Leader - - Scenario: Authenticated user Test the Projects Page - Given I am logged in as a user with the "authenticated" role - When I go to "/projects" - Then I should see "Projects" - Then I should see "Submit New Project" - - When I fill in "edit-search--2" with "test" - And I wait 4 seconds - Then I should see "Test" - Then I should see "test-create-project-title" - Then I should see "Project Institution" - Then I should see "Project Owner" - Then I should see "login" - Then I should see "Status" - Then I should see "test-first-name" - - When I click "Submit New Project" - Then I should be on "/form/project" - Then I should see "Project" - - Scenario: verify search filter - Given I am not logged in - When I go to "/projects" - When I fill in "search" with "nothing-should-show" - And I wait 3 seconds - Then I should see "There are no projects at this time." - diff --git a/tests/behat/features/templates/projects/projects-featured-unauth.feature b/tests/behat/features/templates/projects/projects-featured-unauth.feature deleted file mode 100644 index c76782568..000000000 --- a/tests/behat/features/templates/projects/projects-featured-unauth.feature +++ /dev/null @@ -1,20 +0,0 @@ -@templates -@api -@javascript - -Feature: test Featured projects on home page - - Scenario: Unauthenticated user tests Featured projects on home page - Given I am not logged in - When I am on the homepage - Then I should see "Featured Projects" - When I click "Featured Projects" - Then I should be on "projects" - Then I should see "Recruiting" - When I fill in "edit-search--2" with "test-create-" - #And I wait 4 seconds - Then I should see "test-create-recruiting-project-title" - Then I should see "login" - When I click "test-create-recruiting-project-title" - Then I should get a "200" HTTP response - diff --git a/tests/behat/features/templates/projects/projects-individual.feature b/tests/behat/features/templates/projects/projects-individual.feature deleted file mode 100644 index 5bcecb318..000000000 --- a/tests/behat/features/templates/projects/projects-individual.feature +++ /dev/null @@ -1,138 +0,0 @@ -@templates -@api -@javascript - -Feature: test individual projects page - TODO: make sure following steps are tested, both as authenticated and unauthenticated user - Page title is the Project’s title - Project Image displayed under title (if any) - Project Information block displays: - Tags (if any; each tag links to its own tag page) - Project Status - Project Region - Submitted By (links to user’s profile) - Project Email (link requests to open email app) - Project Institution - Anchor Institution (if any) - Project Address (if any) - Mentors (if any; each name links to user’s page) - Student-facilitators (if any; each name links to user’s page) - “I’m interested” button should not show - Project Description block displays project description - Blogs related to this project are displayed in blocks containing: - Blog Image - Blog Title (links to blog’s page) - Tags (if any; each tag links to its own tag page) - The project related to this blog (links to project’s page) - - Scenario: Remove all projects and verify empty messages - Given I am logged in as a user with the "administrator" role - When I go to "admin/structure/webform/manage/project/results/submissions" - # TODO -- figure out how to select all rows in table -- following doesn't work - # jira: https://cyberteamportal.atlassian.net/browse/D8-1796 - # Items below are selection of created projects but the numbers change so this - # doesn't work -- screenshot shows no rows selected - # maybe this is not feasible in behat and we can leave as is, since it tests - # part of the form and we have other tests that - #When I check "items[1]" - #When I check "items[2]" - #When I check "items[3]" - #When I check "Select all rows in this table" - When I select "Delete submission" from "edit-action" - When I press "Apply to selected items" - #Then I should see "Delete these submissions" - - - Scenario: Unath user must login to create a project - Given I am not logged in - When I go to "/projects" - Then I should see "Login to Add New Project" - When I follow "Login to Add New Project" - Then I should be on "user/login" - And I should see "Login with" - - - Scenario: Auth user does not need to login to create a project - Given I am logged in as a user with the "authenticated" role - When I go to "/projects" - Then I should see "Submit New Project" - When I follow "Submit New Project" - Then I should see "Project Description" - - - Scenario: Verify home page shows project - Given I am not logged in - When I am on the homepage - When I wait for the page to be loaded - Then I should see "Featured Projects" - When I follow "Featured Projects" - And I wait 2 seconds - And I should see "test-create-project-title" - When I follow "login" - And I wait for the page to be loaded - Then I should be on "tags/login" - - Scenario: Verify home page shows project for authenticated user - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - Then I should see "Featured Projects" - When I follow "Featured Projects" - And I wait 2 seconds - And I should see "test-create-project-title" - When I follow "login" - And I wait for the page to be loaded - Then I should be on "tags/login" - - Scenario: Verify unauth user can see test project - Given I am not logged in - When I go to "/projects" - # test case-insensitive searching - When I fill in "search" with "CREATE" - Then I should see "test-create-project-title" - When I follow "test-create-project-title" - And I wait for the page to be loaded - Then I should see "test-create-project-title" - And I should see "login" - Then I should see "Submitted by:" - And I should see "At-Large" - And I should see "In Progress" - And I should see "test@email.com" - And I should see "test Project Institution" - And I should see "test Address" - And I should see "test Address 2" - And I should see "test City/Town" - And I should see "Alabama" - And I should see "98765" - And I should see "test project description" - Then I should not see "I’m interested" - And I should see "http://test.com" - And I should see "33" - - Scenario: Verify auth user can see test project - Given I am logged in as a user with the "authenticated" role - When I go to "/projects" - When I fill in "search" with "CREATE" - Then I should see "test-create-project-title" - When I follow "test-create-project-title" - And I wait for the page to be loaded - Then I should see "test-create-project-title" - And I should see "login" - Then I should see "Submitted by:" - And I should see "At-Large" - And I should see "In Progress" - And I should see "test@email.com" - And I should see "test Project Institution" - And I should see "test Address" - And I should see "test Address 2" - And I should see "test City/Town" - And I should see "Alabama" - And I should see "98765" - And I should see "test project description" - - #Interested button is not able to be clicked - https://cyberteamportal.atlassian.net/browse/D8-1787 - #When I click "I'm interested" - #Then I should see "Interested" - #When I click "I'm interested" - #Then I should see "I'm interested" - And I should see "http://test.com" - And I should see "33" diff --git a/tests/behat/features/templates/projects/projects-remove-individual.feature b/tests/behat/features/templates/projects/projects-remove-individual.feature deleted file mode 100644 index 81c153cf4..000000000 --- a/tests/behat/features/templates/projects/projects-remove-individual.feature +++ /dev/null @@ -1,16 +0,0 @@ -@wip-- -@api -@javascript - -Feature: test removing all projects submissions - TODO this is currently disabled, jira note: https://cyberteamportal.atlassian.net/browse/D8-1628 - - Scenario: Remove all projects and verify empty messages - Given I am logged in as a user with the "administrator" role - When I go to "admin/structure/webform/manage/project/results/submissions" - # TODO - following doesn't work - jira note: https://cyberteamportal.atlassian.net/browse/D8-1628 - When I check "Select all rows in this table" - When I select "Delete submission" from "edit-action" - When I press "Apply to selected items" - #Then I should see "Delete these submissions" - Then I should see "There are no submissions yet." diff --git a/tests/behat/features/templates/projects/projects-unauth.feature b/tests/behat/features/templates/projects/projects-unauth.feature deleted file mode 100644 index b3c8a84cf..000000000 --- a/tests/behat/features/templates/projects/projects-unauth.feature +++ /dev/null @@ -1,31 +0,0 @@ -@templates -@api -@javascript - -Feature: test projects/engagements page - In order to test the Project/Engagements Page - - Scenario: Unauthenticated user Test the Projects/Engagements Page - Given I am not logged in - When I go to "/projects" - Then I should see "Projects" - Then I should see " Login To Add New Project" - Then I should see "Title" - Then I should see "Project Institution" - Then I should see "Project Owner" - Then I should see "Tags" - Then I should see "Status" - Then I should see "Project Leader" - When I fill in "edit-search--2" with "test" - And I wait 5 seconds - Then I should see "Test" - When I fill in "edit-search--2" with "testy2002" - And I wait 5 seconds - Then I should see "There are no projects at this time. Please check back often as projects are added regularly." - - When I fill in "edit-search--2" with "" - And I wait 5 seconds - When I click "login" - Then I should be on "/tags/login" - - diff --git a/tests/behat/features/templates/tags/tags-auth.feature b/tests/behat/features/templates/tags/tags-auth.feature deleted file mode 100644 index bdf332c82..000000000 --- a/tests/behat/features/templates/tags/tags-auth.feature +++ /dev/null @@ -1,35 +0,0 @@ -@templates -@api -@javascript - -Feature: This test is as an authenticated user. - It presents all published tags in a hierarchical tree structure. - Each tag links to its respective tag page. - - Scenario: Tags pages for authenticated user - Given I am logged in as a user with the "authenticated" role - When I go to "tags" - Then I should see "Tags" - And I should see "Search" - And I should see "login" - And I should see "osg" - And I should see "ACCESS Resources" - And I should see "xsede" - - Scenario: Tags pages shows "Request Tag" for authenticated user - Given I am logged in as a user with the "authenticated" role - When I go to "tags" - Then I should see "Request Tag" - - Scenario: Authenticated user searches for tags (case insensitive) - Given I am logged in as a user with the "authenticated" role - When I go to "tags" - When I fill in "Search" with "login" - Then I should see "login" - When I fill in "Search" with "LOGIN" - Then I should see "login" - When I fill in "Search" with "LOGIN" - Then I should see "login" - When I follow "login" - Then I should be on "tags/login" - And I should see "Blog Entries" diff --git a/tests/behat/features/templates/tags/tags-individual.feature b/tests/behat/features/templates/tags/tags-individual.feature deleted file mode 100644 index 905a4ea80..000000000 --- a/tests/behat/features/templates/tags/tags-individual.feature +++ /dev/null @@ -1,149 +0,0 @@ -@templates -@api -@javascript - -Feature: test individual tags page - To test an individual tag - While either authenticated or not - I can verify tag components appear as expected. - Included in test: - - Page title is the tag’s name - - CILinks, category, skill level, - - Can create a project or affinity group with a tag and the tag will appear - on the page and can be followed - TODO 8/4/23: - - from 1.0 spreadsheet: Mentors/Regional Facilitators/Facilitators/RCFs/RSEs/CISEs - with the tag (either in skills or interests; this section should display - mentors and regional facilitators from all regions). - - Ask.ci topics/posts with the tag (Term from Ask.CI), Topic Title (each item - links to its topic in ask.ci, links should open in a new tab) - - - - Scenario: Verify non-admin content for tag "bioinformatics" - Given I am not logged in - When I go to "tags/bioinformatics" - Then I should see "bioinformatics" - And I should see "Mentors and Regional Facilitators" - And I should see "Brett Milash" - And I should see "RMACC" - And I should see "Topics from Ask.CI" - # TODO - doesn't pass on gpc - #And I should see "researcher/educator" - # TODO - doesn't pass on nect - # And I should see "Jetstream-2" - And I should see "There are no Blog Entries associated with this topic." - And I should not see "Export Mailing List" - - Scenario: Verify admin content for tag "bioinformatics" shows mailing list - Given I am logged in as a user with the "administrator" role - When I go to "tags/bioinformatics" - And I should see "Export Mailing List" - - Scenario: Add a "test-affinity-group" for login tag and verify it appears - Given I am logged in as a user with the "administrator" role - When I go to "node/add/affinity_group" - When I fill in "Title" with "test-affinity-group" - # tag is "login" - When I select "682" from "edit-field-tags" - And I fill in "Slug" with "test-affinity-group" - And I fill in "Group ID" with "test.group.id" - When I press "Save" - Then I should see "has been created" - - Given I am not logged in - When I go to "tags/login" - Then I should see "test-affinity-group" - When I follow "test-affinity-group" - #Then I should see "Members get updates about news, events, and outages" - - Given I am logged in as a user with the "authenticated" role - When I go to "tags/login" - Then I should see "test-affinity-group" - # TODO not passing on ky - # When I follow "test-affinity-group" - # Then I should see "Members get updates about news, events, and outages" - # And I should see "test-affinity-group" - - Scenario: Verify the "test-login-resource" KB Resource shows - Given I am not logged in - When I go to "tags/login" - Then I should see "test-login-resource" - # TODO -- no idea why this is failing. Link looks good when testing manually. - # Happens for authenticated user, as shown below as well. - # When I follow "test-login-resource" - # And I wait for the page to be loaded - #Then I should see "votes" - # And I should see "test-login-resource" - - Given I am logged in as a user with the "authenticated" role - When I go to "tags/login" - And I wait 4 seconds - Then I should see "test-login-resource" - #TODO Below Line is broken. Behat sees the test name with the line above but for some reason when trying to follow it no longer works - #When I follow "test-login-resource" - # And I wait for the page to be loaded - # TODO not working for careers or nect -- was votes removed? - # Then I should see "votes" - # And I should see "test-login-resource" - - Scenario: Add a "test-login-project" for login & projects tags and verify they appear - Given I am logged in as a user with the "administrator" role - When I go to "projects" - When I follow "Submit New Project" - When I check "Received" - When I check "Accept and Publish" - When I fill in "Project Title" with "test-project-title" - When I check "At-Large" - # tags: - When I check "login" - When I check "password" - When I fill in "First" with "test-first-name" - When I fill in "Last" with "test-last-name" - When I fill in "Email" with "test@email.com" - When I fill in "Project Description" with "test project description" - When I press "Submit" - Then I should see "test-project-title" - And I should see "test project description" - - Given I am not logged in - When I go to "tags/login" - Then I should see "test-project-title" - When I follow "test-project-title" - And I wait 2 seconds - Then I should see "test project description" - When I go to "tags/password" - Then I should see "test-project-title" - - Given I am logged in as a user with the "authenticated" role - When I go to "tags/login" - And I wait 2 seconds - Then I should see "test-project-title" - When I follow "test-project-title" - And I wait 2 seconds - Then I should see "test project description" - When I go to "tags/password" - And I wait 2 seconds - Then I should see "test-project-title" - - Scenario: Testing Tags display information for resource, projects, etc - Given I am not logged in - When I go to "tags/big-data" - Then I should see "big-data" - Then I should see "Knowledge Base Resources" - Then I should see "Mentors and Regional Facilitators" - Then I should see "Tony Elam" - Then I should see "Kentucky" - Then I should see "Skills" - Then I should see "Interest" - Then I should see "Affinity Groups" - Then I should see "Large Data Sets" - Then I should see "For people who evaluate or use storage options for researchers with large data sets." - Then I should see "cloud-storage" - Then I should see "Join" - Then I should see "Topics from Ask.CI" - Then I should see "Users" - Then I should see "Name" - # Then I should see "student facilitator" - Then I should see "image-processing" - Then I should see "There are no Blog Entries associated with this topic." diff --git a/tests/behat/features/templates/tags/tags-no-entries.feature b/tests/behat/features/templates/tags/tags-no-entries.feature deleted file mode 100644 index 2ec6d0ad7..000000000 --- a/tests/behat/features/templates/tags/tags-no-entries.feature +++ /dev/null @@ -1,31 +0,0 @@ -@templates -@api -@javascript - -Feature: for a new tag, verify all blocks display a no entries message - In order to verify all block show a no entries message - As a user with an unathenticated role - Create a new tag as admin, then as unathenticated person, verify no entries message - - Scenario: Authenticated user fills out the tags form - Given I am logged in as a user with the "administrator" role - When I go to "admin/structure/taxonomy/manage/tags/add" - When I fill in "Name" with "behat_test_tag" - When I check "Generate automatic URL alias" - When I check "Published" - And I wait 4 seconds - When I press "Save" - And I wait 4 seconds - Then I should see "Created new term" - - Given I am not logged in - When I go to "tags/behattesttag" - Then I should see "behat_test_tag" - Then I should see "There are no Mentors and Regional Facilitators associated with this topic." - # TODO - when Ask.CI is working, fix this - #Then I should see "There are no Ask.CI entries associated with this topic." - Then I should see "There are no Affinity Groups associated with this topic." - Then I should see "There are no Users associated with this topic." - Then I should see "There are no Resources associated with this topic." - Then I should see "There are no projects associated with this topic." - Then I should see "There are no Blog Entries associated with this topic." diff --git a/tests/behat/features/templates/tags/tags-request-auth.feature b/tests/behat/features/templates/tags/tags-request-auth.feature deleted file mode 100644 index c5228bfc0..000000000 --- a/tests/behat/features/templates/tags/tags-request-auth.feature +++ /dev/null @@ -1,22 +0,0 @@ -@templates -@api -@javascript - -Feature: Authenticated user on the Request Tag Page: -Webform items include Tag Request Name and Suggested Parent Tag (dropdown). -An email is sent to the NECT mailing list upon submission. - - Scenario: Authenticated user fills out the tags form - Given I am logged in as a user with the "authenticated" role - When I go to "tags" - When I follow "Request Tag" - Then I should be on "form/request-tag" - And I should see "Request Tag" - And I should see "Tag Request Name" - And I should see "Suggested Parent Tag" - When I fill in "Tag Request Name" with "TEST" - # this specifies ACCESS Resources as the parent - When I select "684" from "Suggested Parent Tag" - And I wait 2 seconds - When I press "Submit" - Then I should see "Your request has been submitted! Thank you! We will add your tag soon. Please check back shortly to use your new tag." diff --git a/tests/behat/features/templates/tags/tags-unauth.feature b/tests/behat/features/templates/tags/tags-unauth.feature deleted file mode 100644 index 32331cfa5..000000000 --- a/tests/behat/features/templates/tags/tags-unauth.feature +++ /dev/null @@ -1,35 +0,0 @@ -@templates -@api -@javascript - -Feature: Tests for the Tags page with unauthenticated user. Verify "Request Tag" - button is not shown, a particular tag links to its page, search is case insensitive. - - Scenario: Tags pages for unauthenticated user - Given I am not logged in - When I go to "tags" - Then I should see "Tags" - And I should see "Search" - And I should see "login" - And I should see "osg" - And I should see "ACCESS Resources" - And I should see "xsede" - - Scenario: Tags pages does not show "Request Tag" when logged out - Given I am not logged in - When I go to "tags" - Then I should not see "Request Tag" - - Scenario: Unauthenticated user searches for tags (case insensitive) - Given I am not logged in - When I go to "tags" - When I fill in "Search" with "login" - Then I should see "login" - When I fill in "Search" with "LOGIN" - Then I should see "login" - When I fill in "Search" with "LOGIN" - Then I should see "login" - When I follow "login" - Then I should be on "tags/login" - And I should see "Blog Entries" - diff --git a/tests/behat/features/templates/user-register.feature b/tests/behat/features/templates/user-register.feature deleted file mode 100644 index 64e1f4d89..000000000 --- a/tests/behat/features/templates/user-register.feature +++ /dev/null @@ -1,62 +0,0 @@ -@templates -@api -@javascript - -Feature: This Behat test covers the Register Page, where three icons are present: - -The student-facilitator icon redirects to the student-facilitator registration page. -The mentor icon redirects to the mentor registration page. -The researcher icon redirects to the researcher/educator registration page. -The Student, Mentor, and Researcher Registration Pages have common form fields, -including Email address (unique), Username (unique), First Name, Last Name, Region -(multi-select), and Institution. Each registration type also has additional specific form fields: - -Student-facilitator: Current Degree Program and HPC Experience. -Mentor: Degree and Current Occupation. -Researcher/Educator: Degree and Current Occupation. - - Scenario: Verify the Join button links to join - Given I am not logged in - When I am on the homepage - When I click "Join" - Then I should be on "user/register" - And I should see "Please select an account type below to create" - - When I follow "Student Facilitator" - Then I should see "Create new student-facilitator account" - Then I should see "Program" - Then I should see "Email address" - Then I should see "Username" - Then I should see "First Name" - Then I should see "Last Name" - Then I should see "Organization" - Then I should see "Academic Status" - Then I should see "HPC Experience" - Then I should see "CV/Resume" - Then I should see "Time Zone" - Then I should not see "Citizenships" - - When I am on "user/register" - When I follow "Mentor" - Then I should see "Create new mentor account" - Then I should see "Program" - Then I should see "Email address" - Then I should see "Username" - Then I should see "First Name" - Then I should see "Last Name" - Then I should see "Organization" - Then I should see "CV/Resume" - Then I should see "Time Zone" - Then I should not see "Citizenships" - - When I am on "user/register" - When I follow "Researcher/Educator" - Then I should see "Create new researcher/educator account" - When I select "At-Large" from "Program" - When I fill in "edit-mail" with "Test@mail.com" - When I fill in "edit-name" with "Test" - When I fill in "edit-field-user-first-name-0-value" with "Test" - When I fill in "edit-field-user-last-name-0-value" with "Test" - When I fill in "edit-field-access-organization-0-target-id" with "MGHPCC" - When I click "op" - Then I should be on "/people/card" diff --git a/tests/behat/features/usrse/1-usrse-domaindefault.feature b/tests/behat/features/usrse/1-usrse-domaindefault.feature deleted file mode 100644 index 207ddab0f..000000000 --- a/tests/behat/features/usrse/1-usrse-domaindefault.feature +++ /dev/null @@ -1,19 +0,0 @@ -@usrse -@api -@javascript - -Feature: test usrse domain - In order to test the usrse domain - As a user of the admin role - I need to switch usrse to the default domain - - Scenario: Admin user sets usrse domain to the default - Given I am logged in as a user with the "administrator" role - When I go to "admin/config/domain/edit/usrse_cyberinfrastructure_org" - When I check "Default domain" - When I fill in "Hostname" with "cyberteam.cnctci.lndo.site" - When I press "Save" - Given the cache has been cleared - When I am on the homepage - Then I should get a "200" HTTP response - diff --git a/tests/behat/features/usrse/usrse-homepage.feature b/tests/behat/features/usrse/usrse-homepage.feature deleted file mode 100644 index 0681b63bb..000000000 --- a/tests/behat/features/usrse/usrse-homepage.feature +++ /dev/null @@ -1,31 +0,0 @@ -@usrse -@api -@javascript - -Feature: verify specific links on homepage - - Scenario: User is on the homepage - Given I am not logged in - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/usrse" - And I should see "USRSE" - - Scenario: Verify the main logo goes to home page - Given I am not logged in - When I am on the homepage - When I follow "USRSE" - Then I should be on the homepage - - Scenario: authenticated User is on the homepage - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "Contact Us" - Then I should be on "contact/usrse" - And I should see "USRSE" - - Scenario: authenticated Verify the main logo goes to home page - Given I am logged in as a user with the "authenticated" role - When I am on the homepage - When I follow "USRSE" - Then I should be on the homepage diff --git a/tests/behat/features/wip/_README_behat_wip.txt b/tests/behat/features/wip/_README_behat_wip.txt deleted file mode 100644 index 45eb4493e..000000000 --- a/tests/behat/features/wip/_README_behat_wip.txt +++ /dev/null @@ -1,5 +0,0 @@ -This directory can hold feature tests that are "works in progress". - -In general, these should not get committed to the main branch. - -Remember that the initial tag must be "@wip" \ No newline at end of file diff --git a/tests/behat/features/wip_template/_README_behat_wip_template.txt b/tests/behat/features/wip_template/_README_behat_wip_template.txt deleted file mode 100644 index c637abce7..000000000 --- a/tests/behat/features/wip_template/_README_behat_wip_template.txt +++ /dev/null @@ -1,7 +0,0 @@ -Tests in this directory will be run on all domains *without* running all the tests in the templates directory. - -This allows testing specific template test(s), without running all the template tests. - -In general, these should not get committed to the main branch. - -The initial tag for test(s) in this directory must be "@templates", as if it were in the templates directory. \ No newline at end of file diff --git a/tests/behat/local.yml b/tests/behat/local.yml deleted file mode 100644 index 85cd41a5b..000000000 --- a/tests/behat/local.yml +++ /dev/null @@ -1,48 +0,0 @@ -# To generate a local.yml file using this the example template, execute: -# `blt tests:behat:init` from the project root. -imports: - - behat.yml - -local: - suites: - default: - paths: - # Set features to repo root so that .feature files belonging to contrib - # modules, themes, and profiles can be discovered. - features: /app - contexts: - - Drupal\FeatureContext: - parameters: - environment: - # absolute path to local directory to store screenshots - do not include trailing slash - screenshot_dir: /app/reports - - Drupal\DrupalExtension\Context\DrupalContext - - Drupal\DrupalExtension\Context\MinkContext - - Drupal\DrupalExtension\Context\MessageContext - - Drupal\DrupalExtension\Context\DrushContext - - Drupal\DrupalExtension\Context\ConfigContext - extensions: - DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~ - Behat\MinkExtension: - browser_name: chrome - javascript_session: default - # set default command for "Show last response" step. - show_cmd: "open %s" - selenium2: - wd_host: ${behat.selenium.url} - browser: chrome - sessions: - default: - chrome: - api_url: "http://localhost:9222" - Drupal\DrupalExtension: - drupal: - # This must be an absolute path. - drupal_root: /app/docroot - drush: - alias: '@self' - text: - username_field: "Username or email" - password_field: "Password" - log_out: "Log out" - log_in: "Log in" diff --git a/tests/behat/media/logo.png b/tests/behat/media/logo.png deleted file mode 100644 index e66e819ac..000000000 Binary files a/tests/behat/media/logo.png and /dev/null differ diff --git a/tests/behat/media/readme.md b/tests/behat/media/readme.md deleted file mode 100644 index 0c0a70650..000000000 --- a/tests/behat/media/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -# Behat Media - -This directory is used to store media files required by Behat tests. For -instance, if a test must attach an image to a field, the image file would be -stored here. diff --git a/tests/behat/screenshots/.gitignore b/tests/behat/screenshots/.gitignore deleted file mode 100644 index e33609d25..000000000 --- a/tests/behat/screenshots/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.png