Catalyst QA Tested - PASSED

Please see attached execution results spreadsheet for further detail and
sample screenshot.

Gerrit: https://reviews.mahara.org/#/c/11065/ Patch set 9
Browser/s: Win10 Chrome only
Theme: all six

A) Preconditions:
The developer (Robert) has performed testing with a zip file containing
more than 100 files so this testing will use:
a) singlefile.zip: containing a single file
b) 10files.zip: containing 10 files
c) 11files.zip: containing 11 files
d) 1folder11file.zip: containing 1 folder and 11 files
e) 5folder11file.zip: containing 5 folders and 11 files.
Note: exploratory testing has shown that a folder is counted as a file
for decompression purposes.


A) Repeat the test scenario 1 & 2 test steps for each of the six Mahara
themes: Raw, Default, Primary school, Ocean, Modern, and Maroon. In each
test scenario, use the zip files as shown below in 'A) Expected results'.

Test scenario 1: Verify that the decompress progress bar is not
displayed when the file to decompress has 10 or fewer files in it.
Test steps:
1.1 Log in as site admin (and set the theme if necessary).
1.2 Navigate to 'Main menu' > 'Create' > 'Files', then select to
decompress the zip file
    Expected results:
    - the 'Decompress' page is displayed, select the 'Decompress' button
    - the 'Files' page is displayed, showing the content of the newly
created 'Home/<file name>' folder
    - the correct files are displayed, each with their pre-zipped
properties unchanged.
1.3 Select the 'Parent folder' link
    Expected results:
    - the 'Files' page is displayed showing the content of the 'Home' folder
    - the newly created subfolder has:
      - the same name as the selected zip file
      - the description 'Files extracted from archive'
      - today's date in the format dd/mm/yyyy
      - edit and delete folder icons are available
      - selecting the folder name redisplays the 'Files' page for
the folder
      - selecting the up-arrow returns the user to the 'Home' folder.

Test scenario 2: Verify that the decompress progress bar is displayed
when the file to decompress has more than 10 files in it.
Test steps:
2.1 Select to decompress the zip file (see 'A) Expected results' below for
filename)
    Expected results:
    - the 'Decompress' page will display, select the 'Decompress' button
    - the text "Please wait while your files are being unzipped." will
display
    - the progress bar will display incrementally to indicate progress
    - the progress text will appear underneath the progress bar
    - the progress text will reflect incremental progress
    - on task completion the correct version of text 'Created <x
folder/s and> <y> files.' will display
    - the 'Continue' button will be positioned to the right underneath
the progress bar
    - page styling will be correct for the theme:
      - page element choice and placement are in theme
      - font and colour choices are in theme
      - progress bar and background colour have a contrast ratio of at least 
4.5:1
      - progress text and background colour have a contrast ratio of at least 
4.5:1.
2.2 Select the Continue button
    Expected results:
    - the 'Files' page will display showing the content of the newly
created 'Home/<filename>' folder
    - the correct number of files and folders will be displayed, each
with their pre-zipped properties unchanged.
2.3 Select the 'Parent folder' link
    Expected results:
    - the 'Files' page displays showing the content of the 'Home' folder
    - the newly created folder is present with:
      - the same name as the selected zip file
      - the description 'Files extracted from archive'
      - todays date in the format dd/mm/yyyy
      - edit and delete folder icons are available
      - selecting the folder name redisplays the 'Files' page for
the folder
      - selecting the up-arrow returns the user to the 'Home'
folder.

A) Expected results: The above test cases' expected results are met for
each of the following themes and their test file name pairs:
   - Raw: use singlefile.zip, then 11file.zip
   - Default: use 10file.zip, then 1folder11file.zip
   - Primary school: use singlefile.zip, then 11file.zip
   - Ocean: use 10file.zip, then 5folder11file.zip
   - Modern: use singlefile.zip, then 11file.zip
   - Maroon: use 10file.zip, then 1folder11file.zip.

B) Test scenario 3: Verify that the site admin cannot use the
decompress URL with a valid file number to gain access to another
person's zip file information and content.
Note: Other roles are not affected.


B) Precondition: The logged-in personA, who does not have site admin
access, has at least one zip file in their 'Files' area.

Test steps:
3.1 Navigate to 'Main menu' > 'Create' > 'Files' and mouse over the
zip file name to get its ID.
3.2 Using another browser window, log in as site admin.
3.3 Place the following URL (adjusted with your values) into the admin's
address bar:
    http://<insert your Mahara
pathname>/artefact/file/extract.php?file=<insert your zip file ID>
    Expected results:
    - ✔ the 'Decompress' page displays
    - ✔ the message 'Access denied. You do not have access to view this
      page.' is displayed.

** Attachment added: "ActualResults.ods"
   
https://bugs.launchpad.net/mahara/+bug/1874530/+attachment/5410829/+files/ActualResults.ods

** Changed in: mahara
     Assignee: Rangi Daymond (rangid) => (unassigned)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1874530

Title:
  extracting a zipped file's contents not working correctly

Status in Mahara:
  In Progress

Bug description:
  This page needs some fixing up, the current problems are:

  1) The process bar is in the old css style and should be using the new
  colours and not have a scroll bar in it

  2) The general layout of the page could use some tidying up as well

  3) The extraction of files looks to work but there is no redirect back
  to files page (either automatically or via a button)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1874530/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to