2022-08-15 20:37:52 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2022-08-15 21:37:54 +08:00
|
|
|
const { Options } = require('./options');
|
2022-08-15 20:37:52 +08:00
|
|
|
|
|
|
|
test.describe.parallel('Options', () => {
|
|
|
|
test('Open about modal', async ({ browser, page }) => {
|
2022-08-15 21:37:54 +08:00
|
|
|
const about = new Options(browser, page);
|
2022-08-15 20:37:52 +08:00
|
|
|
await about.init(true, true);
|
|
|
|
await about.openedAboutModal();
|
|
|
|
});
|
2022-09-12 20:33:53 +08:00
|
|
|
|
|
|
|
test('Open Help Button', async ({ browser, page, context }) => {
|
|
|
|
const helpButton = new Options(browser, page);
|
|
|
|
await helpButton.init(true, true);
|
|
|
|
await helpButton.openHelp(context);
|
|
|
|
});
|
2022-08-15 20:37:52 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test.describe.parallel('Settings', () => {
|
2022-08-18 04:08:01 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#application-settings
|
2022-08-15 20:37:52 +08:00
|
|
|
test(`Locales`, async ({ browser, page }) => {
|
|
|
|
test.slow();
|
2022-08-15 21:37:54 +08:00
|
|
|
const language = new Options(browser, page);
|
2022-08-15 20:37:52 +08:00
|
|
|
await language.init(true, true);
|
2022-08-15 21:37:54 +08:00
|
|
|
await language.localesTest();
|
2022-08-15 20:37:52 +08:00
|
|
|
});
|
2022-11-11 04:25:18 +08:00
|
|
|
|
2022-11-17 04:15:24 +08:00
|
|
|
test('Dark mode', async ({ browser, page }) => {
|
2022-11-11 04:25:18 +08:00
|
|
|
const language = new Options(browser, page);
|
|
|
|
await language.init(true, true);
|
|
|
|
await language.darkMode();
|
|
|
|
});
|
2022-08-15 20:37:52 +08:00
|
|
|
});
|