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
ea812a3b
Unverified
Commit
ea812a3b
authored
May 15, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 15, 2024
Browse files
Merge pull request #2281 from cheahjs/fix/settings-cypress
fix: settings cypress test after style changes
parents
240cbda0
8d4c9c77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
cypress/e2e/settings.cy.ts
cypress/e2e/settings.cy.ts
+2
-6
src/lib/components/layout/Navbar.svelte
src/lib/components/layout/Navbar.svelte
+1
-0
No files found.
cypress/e2e/settings.cy.ts
View file @
ea812a3b
...
...
@@ -15,12 +15,8 @@ describe('Settings', () => {
cy
.
loginAdmin
();
// Visit the home page
cy
.
visit
(
'
/
'
);
// Open the sidebar if it is not already open
cy
.
get
(
'
[aria-label="Open sidebar"]
'
).
then
(()
=>
{
cy
.
get
(
'
button[id="sidebar-toggle-button"]
'
).
click
();
});
// Click on the profile link
cy
.
get
(
'
button
'
).
contains
(
adminUser
.
name
).
click
();
// Click on the user menu
cy
.
get
(
'
button[aria-label="User Menu"]
'
).
click
();
// Click on the settings link
cy
.
get
(
'
button
'
).
contains
(
'
Settings
'
).
click
();
});
...
...
src/lib/components/layout/Navbar.svelte
View file @
ea812a3b
...
...
@@ -141,6 +141,7 @@
>
<button
class=" flex rounded-xl p-1.5 w-full hover:bg-gray-100 dark:hover:bg-gray-850 transition"
aria-label="User Menu"
>
<div class=" self-center">
<img
...
...
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