Problem/Motivation

 Add the following three test cases for AWS Cloud Admin Setting forms:

  • Drupal\Tests\aws_cloud\Functional\Config\AwsCloudAdminSettings::testAwsCloudAdminLocationSettings()
  • Drupal\Tests\aws_cloud\Functional\Config\AwsCloudAdminSettings::testAwsCloudAdminNotificationSettings() (this issue)
  • Drupal\Tests\aws_cloud\Functional\Config\AwsCloudAdminSettings::testAwsCloudAdminSettings()

Here is the assertions in each form:

  • Display a form and assert if HTTP response 200 is returned (Please see also the existing utility methods for testing: CloudAssertionTrait)
  • Assert if there is no warning or error status messages (Please see also the existing utility methods for testing: CloudAssertionTrait)
  • Input some value of the fields and click Save and make sure the input values are correctly stored

Specification:

  • Implement createAdminSettingsNotificationsTestFormData() to return an array including the random input data for /admin/config/services/cloud/aws_cloud/notification
  • Access (HTTP Get) /admin/config/services/cloud/aws_cloud/notification and post the random input data.

Issue fork cloud-3232936

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yutong.li created an issue. See original summary.

yutong.li credited yas.

yutong.li’s picture

yutong.li’s picture

Title: Add test case for AWS Cloud Admin Setting forms (Notification) » Add test cases for AWS Cloud Admin Setting forms (Notification)
yutong.li’s picture

Issue summary: View changes
yas’s picture

Issue summary: View changes

yutong.li’s picture

Status: Active » Closed (duplicate)
yutong.li’s picture

I find it easier to maintain these 3 issues in one branch, so I decided to close Notifications and Locations, and only keep Settings.

yas’s picture