[Rt-commit] rt branch, 4.0/spurious-user-change-results, updated. rt-4.0.0-171-g6432e8b

Shawn Moore sartak at bestpractical.com
Fri Apr 29 12:30:12 EDT 2011


The branch, 4.0/spurious-user-change-results has been updated
       via  6432e8b7e0a0a086fe2bc5eb5433269296069661 (commit)
      from  45dde33f84cd48df00aab3d7ac596da11175f0e6 (commit)

Summary of changes:
 t/web/user_update.t |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 t/web/user_update.t

- Log -----------------------------------------------------------------
commit 6432e8b7e0a0a086fe2bc5eb5433269296069661
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Apr 29 12:29:59 2011 -0400

    Actually forgot the test file, doh

diff --git a/t/web/user_update.t b/t/web/user_update.t
new file mode 100644
index 0000000..053e921
--- /dev/null
+++ b/t/web/user_update.t
@@ -0,0 +1,36 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use utf8;
+use RT::Test tests => 10;
+
+my ( $url, $m ) = RT::Test->started_ok;
+ok( $m->login(), 'logged in' );
+
+$m->follow_link_ok({text => 'About me'});
+$m->form_with_fields('Lang');
+$m->field(Lang => 'ja');
+$m->submit;
+
+$m->text_contains("Lang changed from (no value) to 'ja'");
+
+# we only changed one field, and it wasn't the default, so this feedback is
+# spurious and annoying
+$m->content_lacks("That is already the current value");
+
+# change back to English
+$m->form_with_fields('Lang');
+$m->field(Lang => 'en_us');
+$m->submit;
+
+# This message shows up in Japanese
+# $m->text_contains("Lang changed from 'ja' to 'en_us'");
+$m->text_contains("Langは「'ja'」から「'en_us'」に変更されました");
+
+# another spurious update
+$m->content_lacks("That is already the current value");
+
+# This text is not in the RT source (including .po files)!
+# [issues.bestpractical.com #16913]
+$m->content_lacks("the current value-is-already That");
+

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


More information about the Rt-commit mailing list