NOTE: Open Admin Console in one browser tab and Front-End in another browser tab. Switch between two during test plan execution.
NOTE: Test clean install & upgrade. Because upgrade is currently broken I recommend running SQL from `upgrades.sql` manually (just add table prefix in it) on existing install.
# in Admin Console
* go to {nav Configuration > Website > Advanced} section
* enable (if not enabled) `Enable SEO-friendly URLs mode (MOD-REWRITE)` checkbox
* go to {nav Configuration > Website > Site Domains} section
* confirm, that no site domains are displaed
* confirm, that "Enable" and "Disable" toolbar buttons are visible and disabled
* press the "Add" toolbar button to open site domain creation page
* confirm, that "Status" field is shown
* confirm, that "Status" field has Enabled/Disabled radio buttons
* confirm, that "Status" field has Enabled radio button selected by default
* press "Cancel" toolbar button to close site domain creation page
* create 2 enabled site domains
* confirm, that enabled side domain:
* row color background is in grey tones (1st and 2nd row)
* have no icon text to checkbox
* create 2 disabled site domains
* confirm, that disabled site domain:
* row color background is in red tones (1st and 2nd row)
* has red circle icon next to checkbox
# in Front-End
* place the `[<inp2:site-domain.current_Field name="DomainName"/>]` code in the 1st line of "content" block in the "index.tpl" template of currently used theme
* open website from main domain (doesn't match any of created ones)
* confirm, that `[]` is shown (in place, where added template code was parsed)
* open website using enabled domains
* confirm, that `[domain-name-here]` is shown (replace `domain-name-here` with actually visited domain)
* open website using disabled domains
* confirm, that `[]` is shown
# in Admin Console
* enable 3rd domain (should be disabled) domain by going to it's editing form and setting status to Enabled
# on Front-End
* open website using that domain
* confirm, that `[domain-name-here]` is shown (replace `domain-name-here` with actually visited domain)
# in Admin Console
* enable 4th domain (should be disabled) by selecting it in grid and pressing "Enable" toolbar button
# on Front-End
* open website using that domain
* confirm, that `[domain-name-here]` is shown (replace `domain-name-here` with actually visited domain)
# in Admin Console
* disable 1st domain (should be enabled) domain by going to it's editing form and setting status to Disabled
# on Front-End
* open website using that domain
* confirm, that `[]` is shown
# in Admin Console
* disable 2nd domain (should be enabled) by selecting it in grid and pressing "Disable" toolbar button
# on Front-End
* open website using that domain
* enable (if not enabled) `Enable SEO-friendly URLs mode (MOD-REWRITE)` checkbox
* go to {nav Configuration > Website > Site Domains} section
* confirm, that no site domains are displaed
* confirm, that "Enable" and "Disable" toolbar buttons are visible and disabled
* press the "Add" toolbar button to open site domain creation page
* confirm, that "Status" field is shown
* confirm, that "Status" field has Enabled/Disabled radio buttons
* confirm, that "Status" field has Enabled radio button selected by default
* press "Cancel" toolbar button to close site domain creation page
* create 2 enabled site domains
* confirm, that enabled side domain:
* row color background is in grey tones (1st and 2nd row)
* have no icon text to checkbox
* create 2 disabled site domains
* confirm, that disabled site domain:
* row color background is in red tones (1st and 2nd row)
* has red circle icon next to checkbox
# in Front-End
* place the `[<inp2:site-domain.current_Field name="DomainName"/>]` code in the 1st line of "content" block in the "index.tpl" template of currently used theme
* open website from main domain (doesn't match any of created ones)
* confirm, that `[]` is shown (in place, where added template code was parsed)
* open website using enabled domains
* confirm, that `[domain-name-here]` is shown (replace `domain-name-here` with actually visited domain)
* open website using disabled domains
* confirm, that `[]` is shown
# in Admin Console
* enable 3rd domain (should be disabled) domain by going to it's editing form and setting status to Enabled
# on Front-End
* open website using that domain
* confirm, that `[domain-name-here]` is shown (replace `domain-name-here` with actually visited domain)
# in Admin Console
* enable 4th domain (should be disabled) by selecting it in grid and pressing "Enable" toolbar button
# on Front-End
* open website using that domain
* confirm, that `[domain-name-here]` is shown (replace `domain-name-here` with actually visited domain)
# in Admin Console
* disable 1st domain (should be enabled) domain by going to it's editing form and setting status to Disabled
# on Front-End
* open website using that domain
* confirm, that `[]` is shown
# in Admin Console
* disable 2nd domain (should be enabled) by selecting it in grid and pressing "Disable" toolbar button
# on Front-End
* open website using that domain
* confirm, that `[]` is shown