File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ my $rand = rand();
26
26
my $status = $bot -> edit({
27
27
page => $title ,
28
28
text => $rand ,
29
- summary => $agent ,
29
+ summary => $agent . ' (should be a minor edit)' ,
30
+ minor => 1,
30
31
});
31
32
32
33
SKIP: {
@@ -42,7 +43,6 @@ SKIP: {
42
43
text => $rand2 ,
43
44
section => ' new' ,
44
45
summary => $agent ,
45
- minor => 1,
46
46
});
47
47
$bot -> purge_page($title );
48
48
$is = $bot -> get_text($title );
59
59
or diag explain $status ;
60
60
61
61
if ($login_data ) {
62
- my @hist = $bot -> get_history($title , 1 );
63
- ok $hist [0 ]-> {minor }, ' Minor edit' or diag explain $ hist[0] ;
62
+ my @hist = $bot -> get_history($title , 2 );
63
+ ok $hist [1 ]-> {minor }, ' Minor edit' or diag explain \ @ hist ;
64
64
65
65
$bot -> edit({
66
66
page => $title ,
69
69
minor => 0,
70
70
});
71
71
@hist = $bot -> get_history($title , 1);
72
- ok !$hist [0]-> {minor }, ' Not a minor edit' or diag explain $ hist[0] ;
72
+ ok !$hist [0]-> {minor }, ' Not a minor edit' or diag explain \ @ hist ;
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments