Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9796efa
chore: replaced property decorator for state where boolean
anfibiacreativa Nov 2, 2023
a022efc
chore: update the import
anfibiacreativa Nov 2, 2023
caa1588
chore: update vite config
anfibiacreativa Nov 2, 2023
05a7357
chore: create a barrel for all exports
anfibiacreativa Nov 2, 2023
2f78d47
chore: add a teaser type
anfibiacreativa Nov 2, 2023
0a38b03
chore: add a barrel for core modules
anfibiacreativa Nov 2, 2023
3676a1d
chore: update global config according to teaser type
anfibiacreativa Nov 2, 2023
bb11f2f
chore: move teaserlist styles to own file
anfibiacreativa Nov 2, 2023
19628db
chore: rename main styles import to chat
anfibiacreativa Nov 2, 2023
38a33b3
chore: remove default questions from main component
anfibiacreativa Nov 2, 2023
6d7aab3
chore: create teaserlist component
anfibiacreativa Nov 2, 2023
84a4d7b
chore: handle teaser click event on teaserlist
anfibiacreativa Nov 2, 2023
1028f21
chore: handle teaserlist click on chat component
anfibiacreativa Nov 2, 2023
2fa7365
chore: remove debugging statements
anfibiacreativa Nov 2, 2023
fe125fc
chore: add tab component
anfibiacreativa Nov 3, 2023
ae31e38
chore: add tab component styles
anfibiacreativa Nov 3, 2023
79ca44f
chore: decouple tab component (thought process)
anfibiacreativa Nov 3, 2023
6ba341b
chore: add tab component to bundle
anfibiacreativa Nov 3, 2023
c28dbaf
chore: change name of function to generic
anfibiacreativa Nov 3, 2023
c4824c5
chore: update styles from main restyling
anfibiacreativa Nov 10, 2023
44cab41
chore: update styles for teaserlist
anfibiacreativa Nov 10, 2023
4d92fce
chore: add event cancellation from main
anfibiacreativa Nov 10, 2023
3e9d4e8
chore: add latest changes
anfibiacreativa Nov 10, 2023
09d317c
fix: merge conflicts on error styles
Nov 10, 2023
ec8d876
chore: fix eslint errors
shibbas Nov 11, 2023
7131048
chore: refactor voice input into it's own component
shibbas Nov 14, 2023
2cfd9a8
chore: refactor tab component to be generic
shibbas Nov 14, 2023
f590c81
chore: refactor markdown preview to it's own component
shibbas Nov 14, 2023
6ab5ebd
fix: fix follow up question click
shibbas Nov 14, 2023
98cc2ac
test: add test for followup questions
shibbas Nov 14, 2023
4cb91ea
test: iterate through all follow up questions
shibbas Nov 14, 2023
82fe7d7
chore: use the imports for lit elements
shibbas Nov 15, 2023
92bfbc3
feat: add support for pdf rendering in document-previewer
shibbas Nov 15, 2023
8aa8fd0
chore: correct teaserlist filename
shibbas Nov 15, 2023
52c5980
chore: make tab content children of tab content
shibbas Nov 15, 2023
932dfb5
chore: move citations to their own component
shibbas Nov 15, 2023
f278cc8
chore: refactor the chat-thread-list into it's own component
shibbas Nov 16, 2023
495be62
fix: correct the action button disable
shibbas Nov 16, 2023
7303ba9
chore: refactor action buttons to it's own component
shibbas Nov 16, 2023
9a1cd07
fix: exported name for chat-action
shibbas Nov 16, 2023
dfcd3be
chore: delete old style file
shibbas Nov 16, 2023
1c63627
chore: run github actions on develop
shibbas Nov 18, 2023
aeffcc5
docs: update README.md with additional security measures
anfibiacreativa Nov 13, 2023
8df69e4
fix: fix typo
anfibiacreativa Nov 13, 2023
6cee9e6
fix(indexer): incorrect path on Windows (#141)
sinedied Nov 16, 2023
ae695ff
chore: cleanup unused webapp files.
shibbas Nov 17, 2023
c5f6181
fix: show which citation is being viewed across the chat-threads.
shibbas Nov 16, 2023
67cc98a
chore: refactor teaser list to be use passed in values
Nov 17, 2023
6a8e1c1
chore: clean up the styles
Nov 17, 2023
94b9243
chore: cleanup tabs and teaser list
shibbas Nov 18, 2023
18638b0
Merge branch 'main' into develop
anfibiacreativa Nov 20, 2023
939c8da
chore: move type to dev dependency
shibbas Nov 21, 2023
91cebf0
fix: use correct fields for developer settings
Nov 30, 2023
c9c02d3
fix: tests to work with the correct overrides
Nov 30, 2023
e6b27f6
fix: ask uses the prompt-template-* overrides only when it's not empty
Nov 30, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: iterate through all follow up questions
  • Loading branch information
shibbas committed Nov 16, 2023
commit 4cb91ea55ec5ee12ae9650a5317d45f2eac5f76b
19 changes: 11 additions & 8 deletions tests/e2e/webapp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,20 +369,23 @@ test.describe('generate answer', () => {
await expect(page.getByRole('heading', { name: 'Contoso Real Estate Customer Support Guide' })).toBeVisible();
});

test('follow up question', async ({ page }) => {
test('follow up questions', async ({ page }) => {
const followupQuestions = page.getByTestId('followUpQuestion');
await expect(followupQuestions).toHaveCount(3);

await expect(followupQuestions.nth(0)).toBeEnabled();
const questionText = await followupQuestions.nth(0).textContent();
expect(questionText).not.toBeNull();
expect(questionText).not.toBe('');

const chatInput = page.getByTestId('question-input');
await expect(chatInput).toHaveValue('');
await followupQuestions.nth(0).click();

await expect(chatInput).toHaveValue(questionText!);
for (let index = 0; index < 3; index++) {
const question = followupQuestions.nth(index);
await expect(question).toBeEnabled();
const questionText = await question.textContent();
expect(questionText).not.toBeNull();
expect(questionText).not.toBe('');

await question.click();
await expect(chatInput).toHaveValue(questionText!);
}
});
});

Expand Down