[MM-61717] Refresh Settings Modal without Bootstrap (#3337)
* [MM-61717] Refresh Settings Modal without Bootstrap * Fix i18n * Couple small bug fixes * E2E test updates * Fix linux tests * PR feedback * PR feedback * PR feedback * Fix the border opacity and height * PR feedback * PR feedback 2
This commit is contained in:
@@ -67,14 +67,14 @@ describe('focus', function desc() {
|
||||
});
|
||||
|
||||
describe('Focus textbox tests', () => {
|
||||
it('MM-T1315 should return focus to the message box when closing the settings window', async () => {
|
||||
it('MM-T1315 should return focus to the message box when closing the settings modal', async () => {
|
||||
this.app.evaluate(({ipcMain}, showWindow) => {
|
||||
ipcMain.emit(showWindow);
|
||||
}, SHOW_SETTINGS_WINDOW);
|
||||
const settingsWindow = await this.app.waitForEvent('window', {
|
||||
predicate: (window) => window.url().includes('settings'),
|
||||
});
|
||||
await settingsWindow.waitForSelector('.settingsPage.container');
|
||||
await settingsWindow.waitForSelector('.SettingsModal');
|
||||
await settingsWindow.close();
|
||||
|
||||
const isTextboxFocused = await firstServer.$eval('#post_textbox', (el) => el === document.activeElement);
|
||||
@@ -91,7 +91,7 @@ describe('focus', function desc() {
|
||||
textboxString.should.equal('Mattermost');
|
||||
});
|
||||
|
||||
it('MM-T1316 should return focus to the message box when closing the settings window', async () => {
|
||||
it('MM-T1316 should return focus to the message box when closing the Add Server modal', async () => {
|
||||
const mainView = this.app.windows().find((window) => window.url().includes('index'));
|
||||
const dropdownView = this.app.windows().find((window) => window.url().includes('dropdown'));
|
||||
await mainView.click('.ServerDropdownButton');
|
||||
|
Reference in New Issue
Block a user