[MM-61631]: Remove focusable child descendants (#29745)
* [MA-37]: Remove focusable child descendants * [MA-37]: Fix E2E tests --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0dd436d3fb
Коммит
54207acd6a
@@ -152,7 +152,7 @@ describe('Integrations', () => {
|
||||
cy.uiWaitUntilMessagePostedIncludes(firstMessage);
|
||||
|
||||
// * The user stays in the same team
|
||||
cy.get(`#${team1.name}TeamButton`).parent().should('have.class', 'active');
|
||||
cy.get(`#${team1.name}TeamButton`).children().should('have.class', 'active');
|
||||
|
||||
// * The user is in the DM channel with user2
|
||||
cy.get(`#sidebarItem_${Cypress._.sortBy([user1.id, user2.id]).join('__')}`).parent().should('be.visible').and('have.class', 'active');
|
||||
@@ -168,7 +168,7 @@ describe('Integrations', () => {
|
||||
cy.uiWaitUntilMessagePostedIncludes(secondMessage);
|
||||
|
||||
// * The user stays in the same team
|
||||
cy.get(`#${team2.name}TeamButton`).parent().should('have.class', 'active');
|
||||
cy.get(`#${team2.name}TeamButton`).children().should('have.class', 'active');
|
||||
|
||||
// * The user is in the DM channel with user2
|
||||
cy.get(`#sidebarItem_${Cypress._.sortBy([user1.id, user2.id]).join('__')}`).parent().should('be.visible').and('have.class', 'active');
|
||||
|
||||
@@ -142,7 +142,7 @@ describe('Send a DM', () => {
|
||||
// * Dot appears, with no number (just unread, not a mention)
|
||||
cy.apiLogin(userA);
|
||||
cy.visit(offTopicUrlB);
|
||||
cy.get(`#${teamA.name}TeamButton`).parent('.unread').should('be.visible');
|
||||
cy.get(`#${teamA.name}TeamButton`).children('.unread').should('be.visible');
|
||||
cy.get(`#${teamA.name}TeamButton`).should('be.visible').within(() => {
|
||||
cy.get('.badge').should('not.exist');
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user