Fix e2e tests after top bar redesign (#2550)

This commit is contained in:
Zane 2025-05-20 16:09:06 -07:00 committed by GitHub
parent 644317e8c0
commit 0dbf155a65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -248,10 +248,13 @@ test.describe('Goose App', () => {
test('dark mode toggle', async () => {
console.log('Testing dark mode toggle...');
await selectProvider(mainWindow, providers[0]);
// Click the three dots menu button in the top right
await mainWindow.waitForSelector('div[class*="bg-bgSubtle border-b border-borderSubtle"]');
const chatTextarea = await mainWindow.waitForSelector('[data-testid="chat-input"]', {
timeout: 2000
}).catch(() => null);
if (!chatTextarea) {
await selectProvider(mainWindow, providers[0]);
}
const menuButton = await mainWindow.waitForSelector('[data-testid="more-options-button"]', {
timeout: 5000,
state: 'visible'