mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
fix: integration test
This commit is contained in:
parent
a79618ee3e
commit
a19d4267f7
@ -21,14 +21,14 @@ describe('Settings', () => {
|
|||||||
// Click on the model selector
|
// Click on the model selector
|
||||||
cy.get('button[aria-label="Select a model"]').click();
|
cy.get('button[aria-label="Select a model"]').click();
|
||||||
// Select the first model
|
// 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', () => {
|
it('user can perform text chat', () => {
|
||||||
// Click on the model selector
|
// Click on the model selector
|
||||||
cy.get('button[aria-label="Select a model"]').click();
|
cy.get('button[aria-label="Select a model"]').click();
|
||||||
// Select the first model
|
// Select the first model
|
||||||
cy.get('div[role="menuitem"]').first().click();
|
cy.get('button[aria-label="model-item"]').first().click();
|
||||||
// Type a message
|
// Type a message
|
||||||
cy.get('#chat-textarea').type('Hi, what can you do? A single sentence only please.', {
|
cy.get('#chat-textarea').type('Hi, what can you do? A single sentence only please.', {
|
||||||
force: true
|
force: true
|
||||||
|
@ -227,6 +227,7 @@
|
|||||||
<div class="px-3 my-2 max-h-72 overflow-y-auto scrollbar-none">
|
<div class="px-3 my-2 max-h-72 overflow-y-auto scrollbar-none">
|
||||||
{#each filteredItems as item}
|
{#each filteredItems as item}
|
||||||
<button
|
<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"
|
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={() => {
|
on:click={() => {
|
||||||
value = item.value;
|
value = item.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user