Database page Zones testing cases - PokemonWorkshop/PokemonStudio GitHub Wiki

Database page Zones testing cases

This page lists the test cases to be performed to validate the non-regression of the features related to the Zones page of the Pokémon Studio database.

Features to be tested

  • Search for a zone
  • Create a new zone
  • Delete the zone
  • Manage the zone name
  • Manage the zone description
  • Add maps to a zone
  • Remove maps belonging to a zone
  • Manage the panel displayed when the player enters a map of the zone
  • Manage the forced weather when the player arrives on a map of the zone
  • Manage the player's ability to teleport from a map of the zone
  • Manage the zone type
  • Manage the landing coordinates when the player arrives on a map of the zone after using the Fly ability
  • Manage the player's position on the world map when located on a map of this zone
  • Add a group to the zone
  • Edit a group's parameters in the zone
  • Remove a group from the zone
  • Import groups into the zone
  • Delete all groups from the zone
  • View Creatures available in the zone

Main Actions

Search for a zone

  • GIVEN THAT I want to search for a zone in the main dropdown list
  • WHEN I enter text
  • AND I search for a zone by its unique identifier "zone_X"
  • OR I search for a zone by its name
  • THEN the list displays the content matching my search

Create a new zone

  • GIVEN THAT I want to create a new zone
  • WHEN I click on the "+ New Zone" button
  • AND I enter its name
  • AND I enter its description
  • AND I confirm the creation by clicking the "Add Zone" button
  • THEN the new zone is created
  • AND I can access it from the Zones list

Delete the zone

  • GIVEN THAT I want to delete a zone
  • WHEN I click on the red "Delete this zone" button in the "Deletion" section of the page
  • AND I confirm by clicking the red "Delete" button
  • THEN the zone is deleted from the project's database

General Information Section

Manage the zone name

  • GIVEN THAT I want to name a zone
  • WHEN I click on the General Information section
  • AND I edit the zone name
  • AND I click outside the editing modal to confirm the change
  • THEN the zone name is successfully updated

Manage the zone description

  • GIVEN THAT I want to add a description to a zone
  • WHEN I click on the General Information section
  • AND I edit the zone description
  • AND I click outside the editing modal to confirm the change
  • THEN the zone description is successfully updated

Settings Section

Add maps to a zone

  • GIVEN THAT I want to add maps to a zone
  • WHEN I click on the Settings section
  • AND I enter the numeric ID of a map
  • AND I validate my input by pressing the ENTER key
  • AND I click outside the editing modal to confirm the change
  • THEN the zone's map list is successfully updated

Remove maps belonging to a zone

  • GIVEN THAT I want to remove maps from a zone
  • WHEN I click on the Settings section
  • AND I click on the "X" delete button on a map tag
  • AND I click outside the editing modal to confirm the change
  • THEN the zone's map list is successfully updated

Manage the panel displayed when the player enters a map of the zone

  • GIVEN THAT I want to modify the panel displayed when the player enters a map of the zone
  • WHEN I click on the Settings section
  • AND I enter a numeric ID to specify the panel number
  • AND I click outside the editing modal to confirm the change
  • THEN the displayed panel is successfully updated

Manage the forced weather when the player arrives on a map of the zone

  • GIVEN THAT I want to modify the forced weather for a map in the zone
  • WHEN I click on the Settings section
  • AND I select a weather condition from the list
  • AND I click outside the editing modal to confirm the change
  • THEN the forced weather is successfully updated

Travel Section

Manage the player's ability to teleport from a map of the zone

  • GIVEN THAT I want to modify the player's ability to teleport from a map in the zone
  • WHEN I click on the Travel section
  • AND I toggle the Teleportation switch
  • AND I click outside the editing modal to confirm the change
  • THEN the teleportation permission is updated as follows:
    • Active: Teleportation allowed
    • Inactive: Teleportation not allowed

Manage the zone type

  • GIVEN THAT I want to modify the zone type
  • WHEN I click on the Travel section
  • AND I toggle the Outdoor Zone switch
  • AND I click outside the editing modal to confirm the change
  • THEN the zone type is updated as follows:
    • Active: Outdoor Zone
    • Inactive: Indoor Zone

Manage the landing coordinates when the player arrives on a map of the zone after using the Fly ability

  • GIVEN THAT I want to modify the landing coordinates for a map in the zone after the player uses the Fly ability
  • WHEN I click on the Travel section
  • AND I enter coordinates in the x and y input fields
  • AND I click outside the editing modal to confirm the change
  • THEN the landing coordinates are successfully updated

Manage the player's position on the world map when located on a map of this zone

  • GIVEN THAT I want to modify the player's position on the world map when they are on a map of this zone
  • WHEN I click on the Travel section
  • AND I enter the player's coordinates in the x and y input fields
  • AND I click outside the editing modal to confirm the change
  • THEN the world map position is successfully updated

Zone Groups Section

Add a group to the zone

  • GIVEN THAT I want to add a creature group to the zone
  • WHEN I click on the "+ Add Group" button
  • AND I select a group from the list
  • AND I define which map the group will be available on
  • AND I confirm by clicking the "Add this Group" button
  • THEN the group is successfully added to the zone's group list

Edit a group's parameters in the zone

  • GIVEN THAT I want to edit the parameters of a creature group in the zone
  • WHEN I hover over a group in the zone's group list
  • AND I click on the "Edit" button at the end of the row
  • AND I change the group selection
  • AND I update the map where the group is available
  • AND I click outside the editing modal to confirm the change
  • THEN the group's parameters are successfully updated

Remove a group from the zone

  • GIVEN THAT I want to remove a creature group from the zone
  • WHEN I hover over a group in the zone's group list
  • AND I click on the "Delete" button at the end of the row
  • THEN the group is successfully removed from the zone's group list

Import groups into the zone

  • GIVEN THAT I want to import groups to add to the zone's group list
  • WHEN I click on the "Import Groups" button
  • AND I select another zone to import groups from
  • AND I enable the "Replace Groups" switch
  • AND I confirm by clicking the "Import" button
  • THEN the selected zone's groups are imported, replacing the existing groups

Delete all groups from the zone

  • GIVEN THAT I want to delete all creature groups from the zone
  • WHEN I click on the "Delete All" button in the Zone Groups section
  • AND I confirm by clicking the "Delete" button in the warning modal
  • THEN all groups are successfully deleted from the zone's group list

View Creatures available in the zone

  • GIVEN THAT I want to view the creatures available in the zone's groups
  • WHEN I check the content of the Pokémon of the Zone section
  • THEN the creatures in the groups are listed in the section