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
|
|
|
|
2023-04-24 20:44:25 +08:00
|
|
|
test.describe.serial('Options', () => {
|
|
|
|
const options = new Options();
|
|
|
|
test.beforeAll(async({ browser }) => {
|
|
|
|
const context = await browser.newContext();
|
|
|
|
const page = await context.newPage();
|
|
|
|
await options.initModPage(page, true);
|
|
|
|
})
|
|
|
|
|
|
|
|
test('Open about modal', async () => {
|
|
|
|
await options.openedAboutModal();
|
2022-08-15 20:37:52 +08:00
|
|
|
});
|
2022-09-12 20:33:53 +08:00
|
|
|
|
2023-04-24 20:44:25 +08:00
|
|
|
test('Open Help Button', async () => {
|
|
|
|
await options.openHelp();
|
|
|
|
});
|
|
|
|
/*
|
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);
|
|
|
|
});
|
2023-04-24 20:44:25 +08:00
|
|
|
|
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#application-settings
|
|
|
|
test(`Locales`, async ({ browser, page }) => {
|
|
|
|
test.slow();
|
|
|
|
const language = new Options(browser, page);
|
|
|
|
await language.init(true, true);
|
|
|
|
await language.localesTest();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Dark mode', async ({ browser, page }) => {
|
|
|
|
const darkModeTest = new Options(browser, page);
|
|
|
|
await darkModeTest.init(true, true);
|
|
|
|
await darkModeTest.darkMode();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Font size', async ({ browser, page }) => {
|
|
|
|
const fontSize = new Options(browser, page);
|
|
|
|
await fontSize.init(true, true);
|
|
|
|
await fontSize.fontSizeTest();
|
|
|
|
});
|
|
|
|
*/
|
2022-08-15 20:37:52 +08:00
|
|
|
});
|
|
|
|
|
2023-04-24 20:44:25 +08:00
|
|
|
|
|
|
|
/*
|
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-12-01 22:39:26 +08:00
|
|
|
test('Dark mode', async ({ browser, page }) => {
|
2022-11-17 04:17:28 +08:00
|
|
|
const darkModeTest = new Options(browser, page);
|
|
|
|
await darkModeTest.init(true, true);
|
|
|
|
await darkModeTest.darkMode();
|
2022-11-11 04:25:18 +08:00
|
|
|
});
|
2023-01-19 00:29:45 +08:00
|
|
|
|
|
|
|
test('Font size', async ({ browser, page }) => {
|
|
|
|
const fontSize = new Options(browser, page);
|
|
|
|
await fontSize.init(true, true);
|
|
|
|
await fontSize.fontSizeTest();
|
|
|
|
});
|
2023-04-04 04:21:24 +08:00
|
|
|
});
|
2023-04-24 20:44:25 +08:00
|
|
|
*/
|