test: fix Default rooms flaky (#32033)

pull/32023/head^2
Guilherme Gazzo 2 years ago committed by GitHub
parent a3b8f521ea
commit 78e95abaa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      apps/meteor/tests/e2e/administration.spec.ts
  2. 2
      apps/meteor/tests/e2e/page-objects/admin.ts

@ -104,8 +104,12 @@ test.describe.parallel('administration', () => {
await poAdmin.inputSearchRooms.type(targetChannel);
await poAdmin.getRoomRow(targetChannel).click();
await poAdmin.defaultLabel.click();
await poAdmin.btnSave.click();
await test.step('should close contextualbar after saving', async () => {
await poAdmin.btnSave.click();
await expect(poAdmin.page).toHaveURL(new RegExp('/admin/rooms$'));
});
await poAdmin.getRoomRow(targetChannel).click();
await expect(poAdmin.defaultInput).toBeChecked();
});
@ -137,13 +141,13 @@ test.describe.parallel('administration', () => {
test.describe('Mailer', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/admin/mailer');
})
});
test('should not have any accessibility violations', async ({ makeAxeBuilder }) => {
const results = await makeAxeBuilder().analyze();
expect(results.violations).toEqual([]);
})
})
});
});
test.describe('Settings', () => {
test.describe('General', () => {

@ -3,7 +3,7 @@ import type { Locator, Page } from '@playwright/test';
import { AdminFlextab } from './fragments/admin-flextab';
export class Admin {
private readonly page: Page;
public readonly page: Page;
readonly tabs: AdminFlextab;

Loading…
Cancel
Save