Skip to content

Commit

Permalink
fix: integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 2, 2024
1 parent a79618e commit a19d426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/chat.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ describe('Settings', () => {
// Click on the model selector
cy.get('button[aria-label="Select a model"]').click();
// Select the first model
cy.get('div[role="menuitem"]').first().click();
cy.get('button[aria-label="model-item"]').first().click();
});

it('user can perform text chat', () => {
// Click on the model selector
cy.get('button[aria-label="Select a model"]').click();
// Select the first model
cy.get('div[role="menuitem"]').first().click();
cy.get('button[aria-label="model-item"]').first().click();
// Type a message
cy.get('#chat-textarea').type('Hi, what can you do? A single sentence only please.', {
force: true
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/chat/ModelSelector/Selector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
<div class="px-3 my-2 max-h-72 overflow-y-auto scrollbar-none">
{#each filteredItems as item}
<button
aria-label="model-item"
class="flex w-full font-medium line-clamp-1 select-none items-center rounded-button py-2 pl-3 pr-1.5 text-sm text-gray-700 dark:text-gray-100 outline-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg cursor-pointer data-[highlighted]:bg-muted"
on:click={() => {
value = item.value;
Expand Down

0 comments on commit a19d426

Please sign in to comment.