bigbluebutton-Github/bigbluebutton-tests/playwright/options/options.spec.js

32 lines
1.0 KiB
JavaScript
Raw Normal View History

const { test } = require('@playwright/test');
2022-08-15 21:37:54 +08:00
const { Options } = require('./options');
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);
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);
});
});
test.describe.parallel('Settings', () => {
2022-08-18 04:08:01 +08:00
// https://docs.bigbluebutton.org/2.6/release-tests.html#application-settings
test(`Locales`, async ({ browser, page }) => {
test.slow();
2022-08-15 21:37:54 +08:00
const language = new Options(browser, page);
await language.init(true, true);
2022-08-15 21:37:54 +08:00
await language.localesTest();
});
2022-11-11 04:25:18 +08:00
2022-11-24 22:52:06 +08:00
test.only('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
});
});