Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
t3chguy/playwright-homeservers
Michael Telatynski 2025-01-07 09:55:30 +00:00
parent 40d755af6c
commit df510dc74b
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
4 changed files with 16 additions and 4 deletions

View File

@ -111,9 +111,9 @@ jobs:
# Run multiple instances in parallel to speed up the tests
runner: ${{ fromJSON(needs.build.outputs.runners-matrix) }}
project:
- Chrome
- Firefox
- WebKit
# - Chrome
# - Firefox
# - WebKit
- Dendrite
- Pinecone
isCron:

View File

@ -13,8 +13,10 @@ import { type Visibility } from "matrix-js-sdk/src/matrix";
import { test, expect } from "../../element-web-test";
import { waitForRoom } from "../utils";
import { Filter } from "../../pages/Spotlight";
import { isDendrite } from "../../plugins/homeserver/dendrite";
test.describe("Knock Into Room", () => {
test.skip(isDendrite, "Dendrite does not have support for knocking");
test.use({
displayName: "Alice",
labsFlags: ["feature_ask_to_join"],

View File

@ -10,8 +10,10 @@ Please see LICENSE files in the repository root for full details.
import { test, expect } from "../../element-web-test";
import { waitForRoom } from "../utils";
import { isDendrite } from "../../plugins/homeserver/dendrite";
test.describe("Manage Knocks", () => {
test.skip(isDendrite, "Dendrite does not have support for knocking");
test.use({
displayName: "Alice",
labsFlags: ["feature_ask_to_join"],

View File

@ -11,7 +11,7 @@ Please see LICENSE files in the repository root for full details.
* Only intended to run from within GitHub Actions
*/
import type { Reporter, TestCase } from "@playwright/test/reporter";
import type { Reporter, Suite, TestCase, FullConfig } from "@playwright/test/reporter";
const REPO = "element-hq/element-web";
const LABEL = "Z-Flaky-Test";
@ -26,8 +26,16 @@ type PaginationLinks = {
class FlakyReporter implements Reporter {
private flakes = new Set<string>();
private ignoreSuite = false;
public onBegin(config: FullConfig, suite: Suite) {
const projectName = suite.project().name;
// Ignores flakes on Dendrite and Pinecone as they have their own flakes we do not track
this.ignoreSuite = ["Dendrite", "Pinecone"].includes(projectName);
}
public onTestEnd(test: TestCase): void {
if (this.ignoreSuite) return;
const title = `${test.location.file.split("playwright/e2e/")[1]}: ${test.title}`;
if (test.outcome() === "flaky") {
this.flakes.add(title);