Add tests for the hidden/flagged buttons
This commit is contained in:
parent
b685388289
commit
936ec902b5
|
@ -33,7 +33,6 @@ Run the tests locally (against development environment):
|
|||
## TODOs
|
||||
|
||||
1. Actions for creating moderators and resetting passwords
|
||||
1. Probably tests for that 'hidden' button
|
||||
1. CSS
|
||||
1. "All new posts flagged" mode (require approval for new posts)
|
||||
|
||||
|
|
|
@ -80,12 +80,16 @@ subtest Login => sub {
|
|||
$t->get_ok('/moderator/flagged')
|
||||
->status_is(200)
|
||||
->text_like(h2 => qr/Flagged Posts/)
|
||||
->element_exists('a[href*="/moderator/flagged"]')
|
||||
->element_exists('a[href*="/moderator/hidden"]' )
|
||||
};
|
||||
|
||||
subtest Hidden => sub {
|
||||
$t->get_ok('/moderator/hidden')
|
||||
->status_is(200)
|
||||
->text_like(h2 => qr/Hidden Posts/)
|
||||
->element_exists('a[href*="/moderator/flagged"]')
|
||||
->element_exists('a[href*="/moderator/hidden"]' )
|
||||
};
|
||||
|
||||
# Mod session ends
|
||||
|
|
Loading…
Reference in New Issue
Block a user