Skip to content

Commit 3412423

Browse files
committed
fix tests
1 parent 9d1c391 commit 3412423

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

e2e/chat.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ test.describe('Chat v2 Conversation tests', () => {
1616
await chatInput.fill('testinen morjens')
1717
await chatInput.press('Shift+Enter')
1818

19+
// Close send preference configurator
20+
await page.locator('#send-preference-configurator-submit').click()
21+
1922
await expect(page.getByTestId('user-message')).toContainText('testinen morjens')
2023
await expect(page.getByTestId('assistant-message')).toContainText('You are calling mock endpoint for streaming mock data')
2124
})
@@ -28,6 +31,9 @@ test.describe('Chat v2 Conversation tests', () => {
2831
await chatInput.fill('tää tyhjennetään')
2932
await chatInput.press('Shift+Enter')
3033

34+
// Close send preference configurator
35+
await page.locator('#send-preference-configurator-submit').click()
36+
3137
await expect(page.getByTestId('user-message')).toContainText('tää tyhjennetään')
3238
await expect(page.getByTestId('assistant-message')).toContainText('OVER', { timeout: 5000 })
3339

src/client/components/ChatV2/SendPreferenceConfigurator.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ export const SendPreferenceConfiguratorModal = ({ open, onClose, anchorEl, conte
124124
}
125125
/>
126126
</RadioGroup>
127-
<OutlineButtonBlack type="submit">{t('sendPreferenceConfigurator:ok')}</OutlineButtonBlack>
127+
<OutlineButtonBlack type="submit" id="send-preference-configurator-submit">
128+
{t('sendPreferenceConfigurator:ok')}
129+
</OutlineButtonBlack>
128130
</FormControl>
129131
</form>
130132
</Menu>

0 commit comments

Comments
 (0)