MDL-74367 recentlyaccesseditems: full name in item card tooltip

This commit is contained in:
Víctor Déniz 2022-03-30 10:59:26 +01:00
parent e5d207a518
commit c32c3e89ef
2 changed files with 6 additions and 5 deletions

View file

@ -42,7 +42,7 @@
<div class="card-deck dashboard-card-deck one-row" data-region="items-list" role="list">
{{#items}}
<a class="card dashboard-card mb-1" href="{{{viewurl}}}">
<a class="card dashboard-card mb-1" href="{{{viewurl}}}" title="{{{name}}}">
<div class="card-body p-2 m-1">
<div class="d-flex text-truncate">
<div class="d-flex align-self-center activityiconcontainer {{purpose}}">

View file

@ -31,7 +31,7 @@ Feature: The recently accessed items block allows users to easily access their m
When I am on the "Test forum name" "forum activity" page
And I follow "Dashboard"
Then I should see "Test forum name" in the "Recently accessed items" "block"
And I should not see "Show/hide more" in the "Recently accessed items" "block"
And I should not see "Show more items" in the "Recently accessed items" "block"
Scenario: User has accessed more than 3 items
Given the following "activities" exist:
@ -42,13 +42,14 @@ Feature: The recently accessed items block allows users to easily access their m
| data | Test database name | Test database description | C1 | data1 |
And I change window size to "large"
And I am on the "Test forum name" "forum activity" page
And I am on the "Test database name" "data activity" page
And I am on the "Test assignment name" "assign activity" page
And I am on the "Test book name" "book activity" page
And I am on the "Test choice name" "choice activity" page
When I follow "Dashboard"
Then I should see "Show more" in the "Recently accessed items" "block"
Then I should see "Show more items" in the "Recently accessed items" "block"
And I should not see "Test forum name" in the "Recently accessed items" "block"
And I follow "Show more..."
And I click on "Show more items" "button"
And I should see "Test forum name" in the "Recently accessed items" "block"
And I turn editing mode on
And I configure the "Recently accessed items" block
@ -56,4 +57,4 @@ Feature: The recently accessed items block allows users to easily access their m
| Region | content |
And I press "Save changes"
And I turn editing mode off
And I should not see "Show more" in the "Recently accessed items" "block"
And I should not see "Show more items" in the "Recently accessed items" "block"