[MM-61599]: Remove tabIndex from non-interactive elements (#29659)

Этот коммит содержится в:
Saurabh Sharma
2025-01-31 21:54:56 +05:30
коммит произвёл GitHub
родитель 7740eb9d43
Коммит 7a959038f9
11 изменённых файлов: 26 добавлений и 54 удалений

Просмотреть файл

@@ -10,7 +10,7 @@
// Stage: @prod
// Group: @channels @mark_as_unread
import {notShowCursor, markAsUnreadShouldBeAbsent} from './helpers';
import {markAsUnreadShouldBeAbsent} from './helpers';
describe('Channels', () => {
let testUser;
@@ -75,12 +75,6 @@ describe('Channels', () => {
// * Verify the "Mark as Unread" option is absent in post menu
markAsUnreadShouldBeAbsent(post1.id);
// * Hover on the post with holding alt should show cursor
cy.get(`#post_${post1.id}`).trigger('mouseover').type('{alt}', {release: false}).should(notShowCursor);
// # Mouse click on the post holding alt
cy.get(`#post_${post1.id}`).type('{alt}', {release: false}).click();
// * Verify the post is not marked as unread
cy.get('.NotificationSeparator').should('not.exist');
});

Просмотреть файл

@@ -61,8 +61,8 @@ describe('Mark as Unread', () => {
// * Hover on the post with holding alt should show cursor
cy.get(`#post_${post2.id}`).trigger('mouseover').type('{alt}', {release: false}).should(showCursor);
// # Mouse click on the post holding alt
cy.get(`#post_${post2.id}`).type('{alt}', {release: false}).click();
// # Mouse click on the post
cy.get(`#post_${post2.id}`).click();
// * Verify the post is marked as unread
verifyPostNextToNewMessageSeparator('post2');