[MM-47306] Migrate /enterprise/integrations e2e tests to TypeScript (#25720)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bc1a53472a
Коммит
3a6264ad19
@@ -98,15 +98,14 @@ describe('Category muting', () => {
|
||||
create_at: 0,
|
||||
creator_id: '',
|
||||
delete_at: 0,
|
||||
extra_update_at: 0,
|
||||
group_constrained: false,
|
||||
header: '',
|
||||
id: '',
|
||||
last_post_at: 0,
|
||||
purpose: '',
|
||||
scheme_id: '',
|
||||
total_msg_count: 0,
|
||||
update_at: 0,
|
||||
last_root_post_at: 0,
|
||||
})).then((channel: Cypress.Channel) => {
|
||||
// # And then invite us to it
|
||||
cy.wrap(client.addToChannel(testUser.id, channel.id));
|
||||
|
||||
@@ -11,9 +11,7 @@
|
||||
// Group: @channels @enterprise @elasticsearch @incoming_webhook @not_cloud
|
||||
|
||||
import * as TIMEOUTS from '../../../../fixtures/timeouts';
|
||||
import {
|
||||
enableElasticSearch,
|
||||
} from '../elasticsearch_autocomplete/helpers';
|
||||
import {enableElasticSearch} from '../../autocomplete/helpers';
|
||||
|
||||
describe('Incoming webhook', () => {
|
||||
let testTeam;
|
||||
@@ -49,19 +47,30 @@ describe('Incoming webhook', () => {
|
||||
|
||||
const payload = {
|
||||
title: 'Title',
|
||||
attachments: [{
|
||||
type: 'slack_attachment',
|
||||
color: '#7CD197',
|
||||
fields: [{short: false, title: 'Area', value: 'This is a test post from the Integrations tab of release testing that will be deleted by someone who has the admin level permissions to do so.'}],
|
||||
text: `${id} This is the text of the attachment. This text should be searchable. Findme.`,
|
||||
}],
|
||||
attachments: [
|
||||
{
|
||||
type: 'slack_attachment',
|
||||
color: '#7CD197',
|
||||
fields: [
|
||||
{
|
||||
short: false,
|
||||
title: 'Area',
|
||||
value: 'This is a test post from the Integrations tab of release testing that will be deleted by someone who has the admin level permissions to do so.',
|
||||
},
|
||||
],
|
||||
text: `${id} This is the text of the attachment. This text should be searchable. Findme.`,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
cy.visit(`/${testTeam.name}/channels/${testChannel.name}`);
|
||||
|
||||
cy.postIncomingWebhook({url: incomingWebhook.url, data: payload});
|
||||
|
||||
cy.get('#searchBox').wait(TIMEOUTS.HALF_SEC).typeWithForce('findme').typeWithForce('{enter}');
|
||||
cy.get('#searchBox').
|
||||
wait(TIMEOUTS.HALF_SEC).
|
||||
typeWithForce('findme').
|
||||
typeWithForce('{enter}');
|
||||
|
||||
cy.get('#search-items-container').within(() => {
|
||||
cy.get('.attachment__body').should('contain', id);
|
||||
Ссылка в новой задаче
Block a user