TestEngineering/UI/AMO/AddonBlocklisting
Blocklisting
Settings
To test the updates on the staging server we need to tweak the settings at about:config
Change extensions.blocklist.url to https://addons.allizom.org/z/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%PING_COUNT%/%TOTAL_PING_COUNT%/%DAYS_SINCE_LAST_PING%/
Usecase Scenarios:
Extension Blocklisting
testcase 1: Install a blocklisted (hardblock) extension
testcase 2: Verify that installing blocklisted(hardblock) version of an add-on fails
testcase 3: Verify that only the specified add-on version is blocked(hardblock)
testcase 4: Check that installed add-on is disabled when blocklisted (hardblock)
testcase 5: Check blocklisting an add-on for specific Firefox version
testcase 5: Check that specified Firefox version range is honored for a hardblocked extension
testcase 5: Check that specified Firefox version range is honored for a hardblocked extension
testcase 6: Check blocklisting an add-on for specific platform/operating system
testcase 6: Check blocklisting an add-on for specific platform/operating system
- Pick an add-on with an unreviewed latest version.
- Install the previous version of that add-on
- Tools-> Add-ons -->Click on “Find Updates” in the add-ons manager
- Check that there are no updates
testcase 7: Check that there are no updates for unreviewed add-ons
- Pick an add-on with multiple unreviewed versions
- Install an older version
- Tools-> Add-ons -->Click on “Find Updates”
- No updates
testcase 8: Check that no updates are offered if the newer version is incompatible with user's browser version/platform
- Pick an add-on with an incompatible latest version
- Install an older version and restart
- Tools-> Add-ons -->Click on “Find Updates”
- No updates are offered
testcase 9: Check for platform compatibility
- Pick an add-on which has version (b-n) compatible with the test platform and version b not supported on your platform/OS
- Install version (b-n) and restart
- Tools-> Add-ons -->Click on “Find Updates”
- No updates are offered
testcase 10: admin disabled add-on versions
- Install an older version of the test add-on
- Admin-disable the latest version of that add-on
- Check for updates
- Ensure that no updates are offered
testcase 11: Downgrading add-on versions
- Install the latest version of an add-on
- Admin-disable that version
- Check for updates
- Previous version of the add-on is offered
testcase 12: Deleting beta channel
- Install the beta version of an add-on
- Ensure that there is a newer public version for that add-on
- Delete all beta versions
- Check for updates
- Ensure that the latest public version of the add-on is offered
testcase 13: Check updates for lite reviewed add-on
- Install an older version of a lite reviewed add-on
- Check for updates
- Ensure that the latest prelim reviewed add-on is offered in updates
testcase 14: Check updates for public add-on
- Install an older version of a public add-on
- Check for updates
- Ensure that the latest public add-on is offered in updates
testcase 15: Only public versions are offered as updates
- Install an older version of a public add-on
- Grant lite review to the newer version of that add-on
- Check for updates
- Ensure that there are no updates.
testcase 16: Updates for a lite+nominated add-on
- Install an older version of a lite+nominated add-on
- Grant lite review to the newer version of that add-on
- Check for updates
- Ensure that there are no updates.