Skip to content

Commit cd815ea

Browse files
authored
Llmo onboarding tests (#1221)
1 parent 03dacc9 commit cd815ea

File tree

4 files changed

+1890
-9
lines changed

4 files changed

+1890
-9
lines changed

src/support/slack/actions/onboard-llmo-modal.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13-
/* c8 ignore start */
14-
1513
import { Config } from '@adobe/spacecat-shared-data-access/src/models/site/config.js';
1614
import { createFrom } from '@adobe/spacecat-helix-content-sdk';
1715
import { Octokit } from '@octokit/rest';
@@ -668,7 +666,7 @@ export async function onboardSite(input, lambdaCtx, slackCtx) {
668666
auditType: 'llmo-customer-analysis',
669667
},
670668
};
671-
sqs.sendMessage(configuration.getQueues().audits, sqsTriggerMesasage);
669+
await sqs.sendMessage(configuration.getQueues().audits, sqsTriggerMesasage);
672670

673671
const message = `:white_check_mark: *LLMO onboarding completed successfully!*
674672
@@ -706,6 +704,7 @@ export function onboardLLMOModal(lambdaContext) {
706704
let originalThreadTs;
707705
let brandURL;
708706
try {
707+
/* c8 ignore next */
709708
const metadata = JSON.parse(view.private_metadata || '{}');
710709
originalChannel = metadata.originalChannel;
711710
originalThreadTs = metadata.originalThreadTs;
@@ -776,5 +775,3 @@ export function onboardLLMOModal(lambdaContext) {
776775
}
777776
};
778777
}
779-
780-
/* c8 ignore stop */

src/support/slack/commands/llmo-onboard.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13-
/* c8 ignore start */
14-
1513
import {
1614
extractURLFromSlackInput,
1715
postErrorMessage,
@@ -100,5 +98,3 @@ function LlmoOnboardCommand(context) {
10098
}
10199

102100
export default LlmoOnboardCommand;
103-
104-
/* c8 ignore stop */

0 commit comments

Comments
 (0)