Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Update screenshots options test #19532

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bigbluebutton-tests/playwright/core/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ exports.wbStickyNoteShape = 'button[data-testid="tools.note"]';
exports.wbTextShape = 'button[data-testid="tools.text"]';
exports.wbTypedText = 'div[data-shape="text"]';
exports.wbTypedStickyNote = 'div[data-shape="sticky"]';
exports.wbDrawnRectangle = 'div[data-shape="rectangle"]';
exports.wbDrawnRectangle = 'div[data-shape-type="geo"]';
exports.wbDrawnLine = 'div[data-shape="draw"]';
exports.multiUsersWhiteboardOn = 'button[data-test="turnMultiUsersWhiteboardOn"]';
exports.multiUsersWhiteboardOff = 'button[data-test="turnMultiUsersWhiteboardOff"]';
Expand Down
4 changes: 3 additions & 1 deletion bigbluebutton-tests/playwright/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class Options extends MultiUsers {
await this.modPage.waitAndClick(e.modalConfirmButton);

const modPageLocator = this.modPage.getLocator('body');
await this.modPage.page.setViewportSize({ width: 1924, height: 1080 });
const screenshotOptions = {
maxDiffPixels: 1000,
};

await this.modPage.closeAllToastNotifications();

await expect(modPageLocator).toHaveScreenshot('moderator-page-dark-mode.png', screenshotOptions);

await openSettings(this.modPage);
Expand All @@ -85,6 +85,8 @@ class Options extends MultiUsers {
await this.modPage.waitAndClick(e.modalConfirmButton);

const modPageLocator = this.modPage.getLocator('body');

await this.modPage.page.setViewportSize({ width: 1924, height: 1080 });
const screenshotOptions = {
maxDiffPixels: 1000,
};
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const customStyleAvoidUploadingNotifications = encodeCustomParams(`userdata-bbb_

test.describe.parallel('Presentation', () => {
// https://docs.bigbluebutton.org/2.6/release-tests.html#navigation-automated
test('Skip slide @ci @flaky', async ({ browser, context, page }) => {
test('Skip slide @ci', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.skipSlide();
Expand Down