Steps to manually test the module.

Created on 30 July 2015, over 9 years ago
Updated 23 January 2025, 3 months ago

Here are the (currently manual) steps to test the module, after a 7.x or 8.x install with Standard install profile:

Note that you can also bypass this work by using Simpletest -- instructions are at #1438038-12: Automate testing as much as possible . This test will do/verify the preliminary steps and generate the maps page, so all you will need to do is look at the output.

  1. drush -y config-set system.logging error_level verbose -- to turn on error reporting.
  2. drush en simple_gmap - should observe no command line errors, no entries in the dblog report, and no entries in the php_error.log file
  3. admin/structure/types/manage/article/fields add two fields of type "Text (plain)" [in Drupal 7, use type "Text"]
  4. admin/structure/types/manage/article/display -- Set the format/formatter for both of the text fields to be "Google map from one-line address
  5. Same page... For the first field, click the gear wheel and check all the checkboxes (to display map, link, original text, and static map). Note that you will need to obtain and enter a Google Maps API key for your site to have the static map work.
  6. Same page... For the second field, check the boxes for dynamic map, static map, original text, and link. Also change the following settings:
    1. Link text: use_address
    2. Zoom level: 5
    3. Map type: Satellite
    4. Language: page
  7. Create a new article, enter "Eiffel Tower" in the first field and "Place de l'Université-du-Québec, boulevard Charest Est, Québec, QC G1K" in the second (without quotes). Verify the following for the first field:
    1. Both the static and dynamic maps are displayed.
    2. The link to the larger map is included, with text "View larger map".
    3. If you click the map link, the larger map is shown and "Eiffel Tower" appears in the address box
    4. The text "Eiffel Tower" appears below the maps and link.
  8. Verify the following for the second field:
    1. Both the static and dynamic maps are displayed.
    2. They should be zoomed way out to the regional level, rather than street level
    3. They should be satellite images rather than street maps
    4. The link to the larger map is included, but the link text is "Place de l'Université-du-Québec, boulevard Charest Est, Québec, QC G1K"
    5. Verify that the map link has &hl=en in it (so it picked up the page language)
    6. If you click the map link, the larger map is shown and "Place de l'Université-du-Québec, boulevard Charest Est, Québec, QC G1K" appears in the address box
    7. The text "Place de l'Université-du-Québec, boulevard Charest Est, Québec, QC G1K" appears below the maps and link.
  9. Verify XSS protection:
    1. Change the address text, insert both an open and close SCRIPT tag. Verify that the text appears on the page. If not it is being processed by the browser.
  10. Final inspection of php_error.log file and dblog report
  11. You can add a tag such as "ManuallyVerifiedWIthD8.0.0-beta13" to the branch.
🌱 Plan
Status

Closed: outdated

Version

1.0

Component

Documentation

Created by

🇬🇧United Kingdom martin107

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024