Unverified Commit ea812a3b authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #2281 from cheahjs/fix/settings-cypress

fix: settings cypress test after style changes
parents 240cbda0 8d4c9c77
...@@ -15,12 +15,8 @@ describe('Settings', () => { ...@@ -15,12 +15,8 @@ describe('Settings', () => {
cy.loginAdmin(); cy.loginAdmin();
// Visit the home page // Visit the home page
cy.visit('/'); cy.visit('/');
// Open the sidebar if it is not already open // Click on the user menu
cy.get('[aria-label="Open sidebar"]').then(() => { cy.get('button[aria-label="User Menu"]').click();
cy.get('button[id="sidebar-toggle-button"]').click();
});
// Click on the profile link
cy.get('button').contains(adminUser.name).click();
// Click on the settings link // Click on the settings link
cy.get('button').contains('Settings').click(); cy.get('button').contains('Settings').click();
}); });
......
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
> >
<button <button
class=" flex rounded-xl p-1.5 w-full hover:bg-gray-100 dark:hover:bg-gray-850 transition" 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"> <div class=" self-center">
<img <img
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment