This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('welcomeInstallHandler', () => { | |
it('sends welcome msg', () => { | |
const msgMock = jest.fn().mockResolvedValue(null); | |
SlackClient.mockImplementation(() => { | |
return { | |
say: msgMock, | |
}; | |
}); | |
const event = { | |
slackWorkspace: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('"/eletype welcome" should have welcome message with components', () => { | |
beforeEach(() => { | |
cy.server(); | |
cy.route('POST', '*conversations.mark*').as('commandReturn'); | |
}); | |
it('Type Welcome command and wait for response', () => { | |
cy.get('#msg_input > .ql-editor').type('/eletype welcome') | |
//this is an alias that waits for the return message | |
//to appear after typing in the command | |
cy.wait('@commandReturn') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='hidden title'>New Link</div> | |
<form accept-charset="UTF-8" action="/urls" class="new_url" data-validate="true" id="new_url" method="post" novalidate="novalidate"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="E800evqLMvkkuaodl+uiE0xHGr9OFhVQfSK+S+dHwEo=" /></div> | |
<i class='external-link-icon hidden'></i> | |
<div class='section'> | |
<h3 class='section-title'> | |
<i class='details-icon icon-large'></i> | |
Details | |
</h3> | |
<div class='section-content'> | |
<div class='field'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |