blob: dc908fc101c28de93f5539c62099f03efab350df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use RT::Test tests => 9;
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");
|