← Back to team overview

mahara-contributors team mailing list archive

[Bug 1843202] Re: Allow theme fonts to be listed on the admin -> configure site -> fonts page

 

Gerrit/Patchset: https://reviews.mahara.org/mahara refs/changes/12/10312/8
Mahara Environment: my laptop Mahara environment http://mahara.rdaymond.wgtn.cat-it.co.nz/
Browser/s tested: Firefox and Chrome
Theme used: Default

**TEST OBJECTIVE: Verify that the theme fonts are accessible via admin -> configure site ->
***************** fonts page and that they may be selected to be used in skins (institution versus user created).
Note: to confirm what themes and fonts should be available navigate to the link below (there are 6 theme subfolders; custom, default, modern, ocean, primaryschool and raw).
URL to check: https://git.mahara.org/mahara/mahara/tree/master/htdocs/theme/
Check each of the sub-folders to see their font/s - the results are 5 in total;
- custom n/a, default none, modern 1, ocean 1, primaryschool 1 and raw 2 (1 for headings & 1 for text other 2 'fonts' in here are related to icons)

**PRECONDITIONS:
****************
1) Tester has access to the following user types; Mahara Admin, non-Admin user

**TEST STEPS:
*************

Scenario 1: Verify that the theme fonts are present and accessible by the admin user.
------------------
Step 1.1) Logged in Admin user navigates to Configure site --> Fonts --> select the 'Show' drop
down.
Expected result 1.1: The default option 'All fonts' is loaded and each font is
displayed (one 'row' each in font name order) in Preview mode as per the default Text and Size
values.  When the 'Show' drop down is opened, a new fourth 'Theme fonts' option is present 
(follows the 3rd 'Google fonts' option).
Note: initially there were only the 5 Theme fonts present
Actual result 1.1) as expected ✓

Step 1.2) User varies the selected Text, Size and Show options selected then selects the Preview button
Expected result 1.2: the left hand font name and sample Text display adjusts accordingly.
Actual result 1.2: as expected ✓

Step 1.3) User selects the 'Theme fonts' Show option
Expected result 1.3: The following five fonts are displayed (in alphabetic Theme name order) in Preview mode:
ER1.3.1 theme name Modern, font name Raleway
ER1.3.2 theme name Ocean, font name Osvaldo
ER1.3.3 theme name Primary School, font name Shadows into Light Two
ER1.3.4 & 5 theme name Raw, first font name Roboto slab, second font name Open Sans
Notes: there are five themes, the first 'Default' has no font/s
Actual result 1.3: as expected ✓ (see attachment)

Step 1.4) User adds 3 google fonts using the 'Install Google font(s) button
Expected result 1.4: The three new google fonts are correctly displayed with the existing five
Theme fonts via the 1.4.1 Show 'All fonts' (8 displayed in font name order), 
via the 1.4.2 Show 'Google fonts' (3 displayed in font name order) & 
1.4.3 Show 'Theme fonts' (5 displayed)
Actual result 1.4:  each as expected ✓


Scenario 2: Verify that the theme fonts are present for selection when an Admin user chooses
------------------ to create a skin.
Step 2.1) Logged in Admin user navigates to Configure site --> Skins & selects to 'Create
skin'.  
Step 2.2) The Create skin screen tabs are available (default tab General selected), select the
'Fonts and colours' tab option.
Step 2.3) Select the 'Heading font' drop down
Expected result: The above 5 theme fonts are available in the drop down options (was 13 options,
should now be 18)
Actual result: as expected ✓ note: initially was 18, now 21 as includes 3 Google fonts too.
Step 2.4) Select the 'Text font' drop down
Expected result: The above 5 fonts are available in the drop down options (was 13 options,
should be 18)
Actual result: as expected ✓ note: initially was 18, now 21 as includes 3 Google fonts too.


Scenario 3: Verify that an admin user can create a new skin that uses one or more theme font/s
------------------ and that other non-admin user/s can select to use it to create a page.
Step 3.1) Logged in user1 navigates to Create --> Skins and selects the 'Create skin' button (or
selects to Edit an existing one)
Expected result: the Create skin Fonts and colours screen is displayed
Step 3.2) Select the 'Heading font' drop down
Expected result: The above 5 fonts are available in the drop down options (was 13 options, should be 18)
Actual result: as expected ✓ 
Step 3.3) User1 selects one of the new fonts for the skin Headings
Step 3.4) Select the 'Text font' drop down
Expected result: The above 5 fonts are available in the drop down options (was 13 options, should be 18)
Actual result: as expected ✓ 
Step 3.5) User1 selects one of the new fonts for the skin text
Step 3.6) User1 returns to the general tab and Saves the new skin with an appropriate name and Skin access of public.
Step 3.7) User2 can create then display a new page that uses the new skin & theme fonts.
Actual result: as expected ✓


Scenario 4: Verify that a user can create a publicly accessible skin that uses
------------------ one or more theme font/s & successfully create and share the page with
                   another user.  The other user, after viewing the shared page can then 
                   create a new page using the publicly accessible skin.
Step 4.1) User3 (different from that used in scenario 3) logs on and selects to create and make public a new skin that uses one or more theme font/s.
Step 4.2) User3 creates a page using their newly created skin and shares the page with User2.
Step 4.3) User2 views the shared page and then uses the User3 created skin to create a new page.
Expected result: the pages that use the User3 created skin have the same fonts etc.
Actual result: as expected ✓

** Attachment added: "Admin Configure site Fonts - theme fonts selected for display.png"
   https://bugs.launchpad.net/mahara/+bug/1843202/+attachment/5290852/+files/Admin%20Configure%20site%20Fonts%20-%20theme%20fonts%20selected%20for%20display.png

-- 
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/1843202

Title:
  Allow theme fonts to be listed on the admin -> configure site -> fonts
  page

Status in Mahara:
  In Progress

Bug description:
  So that they are viewable there and also be able to be used in skins

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


References