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

33 lines
750 B
JavaScript
Raw Normal View History

const { test } = require('@playwright/test');
2022-08-15 21:37:54 +08:00
const { Options } = require('./options');
2023-04-24 20:44:25 +08:00
test.describe.serial('Options', () => {
const options = new Options();
2023-04-25 21:25:23 +08:00
let context;
2023-04-25 04:52:47 +08:00
test.beforeAll(async ({ browser }) => {
2023-04-25 21:25:23 +08:00
context = await browser.newContext();
2023-04-24 20:44:25 +08:00
const page = await context.newPage();
await options.initModPage(page, true);
2023-04-25 04:52:47 +08:00
});
2023-04-24 20:44:25 +08:00
test('Open about modal', async () => {
await options.openedAboutModal();
});
2022-09-12 20:33:53 +08:00
2023-04-24 20:44:25 +08:00
test('Open Help Button', async () => {
2023-04-25 21:25:23 +08:00
await options.openHelp(context);
2023-04-24 20:44:25 +08:00
});
2023-04-25 04:52:47 +08:00
test('Locales test', async () => {
await options.localesTest();
});
2022-11-11 04:25:18 +08:00
2023-04-25 04:52:47 +08:00
test('Dark mode', async () => {
await options.darkMode();
2022-11-11 04:25:18 +08:00
});
2023-01-19 00:29:45 +08:00
2023-04-25 04:52:47 +08:00
test('Font size', async () => {
await options.fontSizeTest();
2023-01-19 00:29:45 +08:00
});
});