Skip to content

Commit

Permalink
chore(#8671): stabilize feedback docs e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabarsan authored Oct 31, 2023
1 parent e4cd644 commit cede018
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/e2e/default/db/feedback-docs.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ describe('feedback docs', () => {
await browser.waitUntil(async () => (await chtDbUtils.getFeedbackDocs()).length === initialFeedbackDocCount + 1);
feedbackDocs = await chtDbUtils.getFeedbackDocs();

expect(feedbackDocs[0]).to.deep.nested.include({ 'info.message': 'w00t 999' });
expect(feedbackDocs[1]).to.deep.nested.include({ 'info.message': 'omg what' });
expect(feedbackDocs.at(-1)).to.deep.nested.include({ 'info.message': 'omg what' });

await chtDbUtils.addReadDocs();
await browser.execute(() => console.error('omg again', new Error('omg again')));

await browser.waitUntil(async () => (await chtDbUtils.getFeedbackDocs()).length === initialFeedbackDocCount + 2);
feedbackDocs = await chtDbUtils.getFeedbackDocs();
expect(feedbackDocs[2]).to.deep.nested.include({ 'info.message': 'omg again' });
expect(feedbackDocs.at(-1)).to.deep.nested.include({ 'info.message': 'omg again' });

await chtDbUtils.clearFeedbackDocs();
});
Expand Down

0 comments on commit cede018

Please sign in to comment.