Fixed Add Channel_test_cases (#22768)
* Fixed Add Channel_test_cases * fixed more test cases * fixed lint
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8d301c0d64
Коммит
f1f54508f4
@@ -196,7 +196,7 @@ describe('Verify Accessibility Support in different input fields', () => {
|
||||
cy.get('#FormattingControl_ul').should('be.focused').and('have.attr', 'aria-label', 'bulleted list').tab();
|
||||
|
||||
// * Verify if the focus is on the numbered list button
|
||||
cy.get('#FormattingControl_ol').should('be.focused').and('have.attr', 'aria-label', 'numbered list').tab();
|
||||
cy.get('#FormattingControl_ol').should('be.focused').and('have.attr', 'aria-label', 'numbered list').tab().tab();
|
||||
|
||||
// * Verify if the focus is on the formatting options button
|
||||
cy.get('#toggleFormattingBarButton').should('be.focused').and('have.attr', 'aria-label', 'formatting').tab();
|
||||
|
||||
@@ -159,7 +159,7 @@ describe('LDAP guest', () => {
|
||||
// # Create team if no membership
|
||||
cy.skipOrCreateTeam(testSettings, getRandomId()).then(() => {
|
||||
// * Verify user is a member
|
||||
cy.findByRole('button', {name: 'Add Channel Dropdown'}).should('exist');
|
||||
cy.uiGetLHSAddChannelButton().should('exist');
|
||||
|
||||
// # Demote the user
|
||||
demoteUserToGuest(user2Data);
|
||||
@@ -173,7 +173,7 @@ describe('LDAP guest', () => {
|
||||
cy.uiAddDirectMessage().should('exist');
|
||||
|
||||
// * Check the user is a guest
|
||||
cy.findByRole('button', {name: 'Add Channel Dropdown'}).should('not.exist');
|
||||
cy.uiGetLHSAddChannelButton().should('not.exist');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -53,7 +53,7 @@ describe('System Scheme', () => {
|
||||
cy.findByTestId('systemScheme-link').should('be.visible').click().wait(TIMEOUTS.HALF_SEC);
|
||||
|
||||
// # Click on `Reset to defaults`
|
||||
cy.findByTestId('resetPermissionsToDefault').should('be.visible').click().wait(TIMEOUTS.HALF_SEC);
|
||||
cy.findByTestId('resetPermissionsToDefault').scrollIntoView().should('be.visible').click().wait(TIMEOUTS.HALF_SEC);
|
||||
|
||||
// # Confirm the dialog
|
||||
cy.get('#confirmModalButton').click().wait(TIMEOUTS.TWO_SEC);
|
||||
@@ -78,10 +78,10 @@ describe('System Scheme', () => {
|
||||
cy.findByTestId('all_users-private_channel-create_private_channel-checkbox').should('not.have.class', 'checked');
|
||||
|
||||
// # Click on `Reset to defaults`
|
||||
cy.findByTestId('resetPermissionsToDefault').should('be.visible').click().wait(TIMEOUTS.HALF_SEC);
|
||||
cy.findByTestId('resetPermissionsToDefault').scrollIntoView().should('be.visible').click().wait(TIMEOUTS.HALF_SEC);
|
||||
|
||||
// # Confirm the dialog
|
||||
cy.get('#confirmModalButton').click().wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('#confirmModalButton').scrollIntoView().click().wait(TIMEOUTS.HALF_SEC);
|
||||
|
||||
// # Save changes
|
||||
cy.get('#saveSetting').click().wait(TIMEOUTS.TWO_SEC);
|
||||
|
||||
Ссылка в новой задаче
Block a user