bigbluebutton-Github/bigbluebutton-tests/playwright/options/options.spec.js
2022-11-24 11:52:06 -03:00

32 lines
1.0 KiB
JavaScript

const { test } = require('@playwright/test');
const { Options } = require('./options');
test.describe.parallel('Options', () => {
test('Open about modal', async ({ browser, page }) => {
const about = new Options(browser, page);
await about.init(true, true);
await about.openedAboutModal();
});
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', () => {
// 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.only('Dark mode', async ({ browser, page }) => {
const darkModeTest = new Options(browser, page);
await darkModeTest.init(true, true);
await darkModeTest.darkMode();
});
});