fix(e2e): several tests (#24539)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6f4382189f
Коммит
1fc6b96c1b
@@ -42,6 +42,7 @@ describe('Messaging', () => {
|
||||
cy.apiCreateGroupChannel([firstUser.id, secondUser.id, thirdUser.id]).then(({channel}) => {
|
||||
// # Visit the newly created group message
|
||||
cy.visit(`/${testTeam.name}/channels/${channel.name}`);
|
||||
cy.postMessage('hello');
|
||||
|
||||
// # Go to off-topic
|
||||
cy.get('#sidebarItem_off-topic').click();
|
||||
|
||||
@@ -36,11 +36,11 @@ describe('Show GIF images properly', () => {
|
||||
cy.url().should('include', offtopiclink);
|
||||
|
||||
// # Post tenor GIF
|
||||
cy.postMessage('https://c.tenor.com/Ztva2YFROSkAAAAi/duck-searching.gif');
|
||||
cy.postMessage('https://media.tenor.com/yCFHzEvKa9MAAAAi/hello.gif');
|
||||
|
||||
cy.getLastPostId().as('postId').then((postId) => {
|
||||
// * Validate image size
|
||||
cy.get(`#post_${postId}`).find('.attachment__image').should('have.css', 'width', '137px');
|
||||
cy.get(`#post_${postId}`).find('.attachment__image').should('have.css', 'width', '189px');
|
||||
});
|
||||
|
||||
// # Post giphy GIF
|
||||
|
||||
Ссылка в новой задаче
Block a user