[Rt-commit] rt 05/06: Test order indicator in search results header

sunnavy sunnavy at bestpractical.com
Wed Jul 28 21:25:29 UTC 2021


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 5.0/search-results-header-order-indicator
in repository rt.

commit cf6076b3285133c764a7ac4d405e5a645a20a195
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Tue Oct 2 02:53:31 2018 +0800

    Test order indicator in search results header
---
 t/web/query_builder.t | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/t/web/query_builder.t b/t/web/query_builder.t
index fa4dd33866..08dbb480a8 100644
--- a/t/web/query_builder.t
+++ b/t/web/query_builder.t
@@ -312,14 +312,17 @@ diag "make sure skipped order by field doesn't break search";
 
     $agent->follow_link_ok({id => 'page-edit_search'});
     $agent->form_name('BuildQuery');
-    $agent->field("OrderBy", 'Requestor.EmailAddress', 3);
+    $agent->field('Order', 'DESC', 1);
+    $agent->field("OrderBy", 'Requestor.Name', 3);
     $agent->submit;
     $agent->form_name('BuildQuery');
     is $agent->value('OrderBy', 1), 'id';
     is $agent->value('OrderBy', 2), '';
-    is $agent->value('OrderBy', 3), 'Requestor.EmailAddress';
+    is $agent->value('OrderBy', 3), 'Requestor.Name';
 
     $agent->follow_link_ok({id => 'page-results'});
+    $agent->content_like(qr/class="fas fa-sort-down".*class="fas fa-sort-up"/s, 'orders');
+
     ok( $agent->find_link(
         text      => $t->id,
         url_regex => qr{/Ticket/Display\.html},

-- 
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.


More information about the rt-commit mailing list