mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 14:44:21 +01:00
Fix e2e tests after top bar redesign (#2550)
This commit is contained in:
@@ -248,10 +248,13 @@ test.describe('Goose App', () => {
|
|||||||
test('dark mode toggle', async () => {
|
test('dark mode toggle', async () => {
|
||||||
console.log('Testing dark mode toggle...');
|
console.log('Testing dark mode toggle...');
|
||||||
|
|
||||||
await selectProvider(mainWindow, providers[0]);
|
const chatTextarea = await mainWindow.waitForSelector('[data-testid="chat-input"]', {
|
||||||
|
timeout: 2000
|
||||||
|
}).catch(() => null);
|
||||||
|
if (!chatTextarea) {
|
||||||
|
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 menuButton = await mainWindow.waitForSelector('[data-testid="more-options-button"]', {
|
const menuButton = await mainWindow.waitForSelector('[data-testid="more-options-button"]', {
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
state: 'visible'
|
state: 'visible'
|
||||||
|
|||||||
Reference in New Issue
Block a user