[Bps-public-commit] RTx-TakeScreenshots branch, master, updated. ae3cd1e16320e775bc7babbc50d4a028d5413813

Alex Vandiver alexmv at bestpractical.com
Thu Oct 3 11:52:44 EDT 2013


The branch, master has been updated
       via  ae3cd1e16320e775bc7babbc50d4a028d5413813 (commit)
       via  42d7fda46af4910380f1da452d570e2a67df5ebb (commit)
      from  674358a51376d62ee84daeabd196b1c421502d7c (commit)

Summary of changes:
 README               |  3 +++
 bin/take-screenshots | 20 +++++++++++---------
 etc/example.css      |  3 +++
 3 files changed, 17 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit 42d7fda46af4910380f1da452d570e2a67df5ebb
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Oct 3 11:51:54 2013 -0400

    Update for RT 4.2

diff --git a/bin/take-screenshots b/bin/take-screenshots
index e5da89d..00562d0 100755
--- a/bin/take-screenshots
+++ b/bin/take-screenshots
@@ -109,8 +109,11 @@ for my $subscribe (grep { $_->[1] =~ /Dashboards\/Subscription/ } @pages) {
     $firefox->wait_for_page_to_load(1000);
 
     $firefox->select('section', 'Page');
+    $firefox->click('css=.primary-colors button:nth-of-type(2)');
+
+    $firefox->select('section', 'Title bar');
     $firefox->click('css=.primary-colors button:nth-of-type(1)');
-    
+
     $firefox->select('section', 'Page title');
     $firefox->run_script('jQuery.farbtastic("#color-picker").setColor("#000000");');
 
@@ -144,11 +147,6 @@ for my $subscribe (grep { $_->[1] =~ /Dashboards\/Subscription/ } @pages) {
 # Show some tweakable prefs
 {
     shoot_pref(
-        pref => 'DeferTransactionLoading',
-        page => 'ticket_basics',
-    );
-
-    shoot_pref(
         pref => 'SimplifiedRecipients',
         page => 'ticket_update',
     );
@@ -162,7 +160,11 @@ for my $page (@pages) {
 
     print "Screenshotting $title\n";
     $firefox->open("$RT$url");
-    $firefox->wait_for_page_to_load(5000);
+    if ($url =~ m{Ticket/Display}) {
+        $firefox->pause(3000);
+    } else {
+        $firefox->wait_for_page_to_load(5000);
+    }
 
     if ($url =~ m{^/m/} and not $resized) {
         resize_window($firefox, 416, 400);
@@ -222,8 +224,8 @@ search_results|/Search/Results.html?Query=id+<+4;Order=DESC
 search_bulk_update|/Search/Bulk.html?Query=id+<+4;Order=DESC
 ticket_relationships|/Ticket/Graphs/index.html?id=1&Direction=LR&LeadingLink=DependsOn&MaxDepth=0&ShowLinks=MemberOf&ShowLinks=RefersTo&FillUsing=&Level-1-Properties=Subject&Level-1-Properties=Status&Level-2-Properties=Subject&Level-2-Properties=Status&Level-3-Properties=Subject&Level-3-Properties=Status&Update=Update+Graph&SavedSearchId=new&SavedSearchOwner=RT::User-12&SavedSearchDescription=&SavedSearchLoad=
 ticket_charts|/Search/Chart.html?Query=Created+%3C+%27tomorrow%27&SavedChartSearchId=new&ChartStyle=bar&PrimaryGroupBy=Owner.Name
-dashboard|/Dashboards/10/SLA+Performance
-dashboard_subscription|/Dashboards/Subscription.html?id=10
+dashboard|/Dashboards/11/SLA+Performance
+dashboard_subscription|/Dashboards/Subscription.html?id=11
 # The theme editor is also special-cased above for more interesting screenshots
 theme_editor_defaults|/Admin/Tools/Theme.html
 # acl-User_Defined-22 is the Best Practical staff group
diff --git a/etc/example.css b/etc/example.css
index 5bad42c..64b2b2e 100644
--- a/etc/example.css
+++ b/etc/example.css
@@ -8,6 +8,9 @@ body.aileron #main-navigation #app-nav > li, body.aileron #main-navigation #app-
 /* Page title */
 div#header h1 { color: #000000 }
 
+/* Title bar */
+div#header { background: #f6f6f6; color: #000000 }
+
 /* Page content */
 div#body { border: 1px solid #aaa }
 

commit ae3cd1e16320e775bc7babbc50d4a028d5413813
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Oct 3 11:52:39 2013 -0400

    Note RestrictReferrer is harmful here

diff --git a/README b/README
index c9cdf9d..d5ecfd2 100644
--- a/README
+++ b/README
@@ -2,3 +2,6 @@ This doesn't actually need to be installed to work.  It does expect its
 initialdata file to be loaded, so run make initdb.  Even better, run
 ./bin/clean-slate to force reset your RT database and then run make
 initdb in this extension.
+
+You will need to make sure that $RestrictReferrer is turned _off_ in
+your RT_SiteConfig.pm
\ No newline at end of file

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list