From 2d00c6dce585755ccd3c16a748bac589ef7b65aa Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Thu, 30 May 2024 20:45:53 -0700 Subject: [PATCH] Test some checkboxes after migration Signed-off-by: Matt Friedman --- tests/functional/functional_test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/functional_test.php b/tests/functional/functional_test.php index c52c1ab..5a8137d 100644 --- a/tests/functional/functional_test.php +++ b/tests/functional/functional_test.php @@ -72,6 +72,12 @@ public function test_ucp_module() $this->assertContainsLang('NOTIFY_WEBPUSH_ENABLE', $crawler->filter('label[for="subscribe_webpush"]')->text()); $this->assertContainsLang('NOTIFICATION_METHOD_PHPBB_WPN_WEBPUSH', $crawler->filter('th.mark')->eq(2)->text()); + + $wp_list = $crawler->filter('.table1'); + $this->assert_checkbox_is_checked($wp_list, 'notification.type.quote_notification.method.phpbb.wpn.webpush'); + $this->assert_checkbox_is_checked($wp_list, 'notification.type.pm_notification.method.phpbb.wpn.webpush'); + $this->assert_checkbox_is_unchecked($wp_list, 'notification.type.bookmark_notification.method.phpbb.wpn.webpush'); + $this->assert_checkbox_is_unchecked($wp_list, 'notification.type.group_request_notification.method.phpbb.wpn.webpush'); } public function test_dropdown_subscribe_button()