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

36 lines
876 B
JavaScript

const { test } = require('@playwright/test');
const { fullyParallel } = require('../playwright.config');
const { Options } = require('./options');
if (!fullyParallel) test.describe.configure({ mode: 'serial' });
test.describe('Options', () => {
const options = new Options();
let context;
test.beforeAll(async ({ browser }) => {
context = await browser.newContext();
const page = await context.newPage();
await options.initModPage(page, true);
});
test('Open about modal', async () => {
await options.openedAboutModal();
});
test('Open Help Button', async () => {
await options.openHelp(context);
});
test('Locales test', async () => {
await options.localesTest();
});
test('Dark mode @ci', async () => {
await options.darkMode();
});
test('Font size @ci', async () => {
await options.fontSizeTest();
});
});