Ensure chats pane in settings is visible

This commit is contained in:
trevor-signal 2024-03-01 16:52:17 -05:00 committed by GitHub
parent b379ec115d
commit 38adef4233
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 11 deletions

View file

@ -31,14 +31,27 @@ describe('settings', function (this: Mocha.Suite) {
await bootstrap.teardown();
});
it('settings window loads when opened', async () => {
it('settings window and all panes load when opened', async () => {
const window = await app.getWindow();
const newPagePromise = window.context().waitForEvent('page');
await window.locator('.NavTabs__ItemIcon--Settings').click();
const settingsWindow = await newPagePromise;
await settingsWindow.getByText('Device Name').waitFor();
await settingsWindow.getByText('Appearance').click();
await settingsWindow.getByText('Language').first().waitFor();
await settingsWindow.getByText('Chats').click();
await settingsWindow.getByText('Sent media quality').waitFor();
await settingsWindow.getByText('Calls').click();
await settingsWindow.getByText('Enable incoming calls').waitFor();
await settingsWindow.getByText('Notifications').click();
await settingsWindow.getByText('Notification content').waitFor();
await settingsWindow.getByText('Privacy').click();
await settingsWindow.getByText('Read receipts').waitFor();
});
});