Open
Bug 1554205
Opened 6 years ago
Updated 6 years ago
Set localStorage to auto expand all modules and enabled auto-edit for show_bug form
Categories
(bugzilla.mozilla.org :: Continous Integration, enhancement)
Tracking
()
NEW
People
(Reporter: dkl, Unassigned)
Details
Currently the test scripts for each bug page load, click on the action button and select expand all modules. Also the script clicks the edit button each time. If we would pre-populate localStorage values to automatically expand all modules and enable the edit button, it could speed up the execution of all of the UI tests since it would not have to perform the extra clicks.
Something like
sub go_to_bug {
my ($sel, $bug_id) = @_;
$sel->driver->execute_script(qq{
localStorage.setItem('modal-perm-edit-mode', 'true');
localStorage.setItem('module-attachments.visibility', 'show');
localStorage.setItem('module-details.visibility', 'show');
localStorage.setItem('module-firefox-tracking-flags.visibility', 'show');
localStorage.setItem('module-people.visibility', 'show');
localStorage.setItem('module-phabricator-revisions.visibility', 'show');
localStorage.setItem('module-security.visibility', 'show');
localStorage.setItem('module-status.visibility', 'show');
localStorage.setItem('module-time-tracking.visibility', 'show');
localStorage.setItem('module-tracking.visibility', 'show');
localStorage.setItem('module-user-story.visibility', 'show');
});
...
}
| Reporter | ||
Comment 1•6 years ago
|
||
Note: Will also need
diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl
index e9700df15..b103f9285 100755
--- a/scripts/entrypoint.pl
+++ b/scripts/entrypoint.pl
@@ -139,6 +139,7 @@ sub cmd_load_test_data {
run(
'perl', 'scripts/generate_bmo_data.pl',
'--user-pref', 'ui_experiments=on',
+ '--user-pref', 'ui_remember_collapsed=on',
'--param', 'use_mailer_queue=0'
);
You need to log in
before you can comment on or make changes to this bug.
Description
•