Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
a19d4267
Commit
a19d4267
authored
May 02, 2024
by
Timothy J. Baek
Browse files
fix: integration test
parent
a79618ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cypress/e2e/chat.cy.ts
cypress/e2e/chat.cy.ts
+2
-2
src/lib/components/chat/ModelSelector/Selector.svelte
src/lib/components/chat/ModelSelector/Selector.svelte
+1
-0
No files found.
cypress/e2e/chat.cy.ts
View file @
a19d4267
...
@@ -21,14 +21,14 @@ describe('Settings', () => {
...
@@ -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="menu
item"]
'
).
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="menu
item"]
'
).
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
...
...
src/lib/components/chat/ModelSelector/Selector.svelte
View file @
a19d4267
...
@@ -227,6 +227,7 @@
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment