Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>t3chguy/playwright-homeservers
parent
048563a0a4
commit
af8935e159
|
@ -10,6 +10,7 @@ import type { Preset, Visibility } from "matrix-js-sdk/src/matrix";
|
||||||
import { test, expect } from "../../element-web-test";
|
import { test, expect } from "../../element-web-test";
|
||||||
|
|
||||||
test.describe("Room Directory", () => {
|
test.describe("Room Directory", () => {
|
||||||
|
test.skip(({ homeserverType }) => homeserverType === "pinecone", "Pinecone's /publicRooms API takes forever");
|
||||||
test.use({
|
test.use({
|
||||||
displayName: "Ray",
|
displayName: "Ray",
|
||||||
botCreateOpts: { displayName: "Paul" },
|
botCreateOpts: { displayName: "Paul" },
|
||||||
|
@ -38,7 +39,7 @@ test.describe("Room Directory", () => {
|
||||||
await expect(publishedAddresses.locator("#canonicalAlias")).toHaveValue(`#gaming:${user.homeServer}`);
|
await expect(publishedAddresses.locator("#canonicalAlias")).toHaveValue(`#gaming:${user.homeServer}`);
|
||||||
const checkbox = publishedAddresses
|
const checkbox = publishedAddresses
|
||||||
.locator(".mx_SettingsFlag", {
|
.locator(".mx_SettingsFlag", {
|
||||||
hasText: "Publish this room to the public in localhost's room directory?",
|
hasText: `Publish this room to the public in ${user.homeServer}'s room directory?`,
|
||||||
})
|
})
|
||||||
.getByRole("switch");
|
.getByRole("switch");
|
||||||
await checkbox.check();
|
await checkbox.check();
|
||||||
|
|
|
@ -69,6 +69,11 @@ const test = base.extend<{
|
||||||
});
|
});
|
||||||
|
|
||||||
test.describe("Sliding Sync", () => {
|
test.describe("Sliding Sync", () => {
|
||||||
|
test.skip(
|
||||||
|
({ homeserverType }) => homeserverType === "pinecone",
|
||||||
|
"due to a bug in Pinecone https://github.com/element-hq/dendrite/issues/3490",
|
||||||
|
);
|
||||||
|
|
||||||
const checkOrder = async (wantOrder: string[], page: Page) => {
|
const checkOrder = async (wantOrder: string[], page: Page) => {
|
||||||
await expect(page.getByRole("group", { name: "Rooms" }).locator(".mx_RoomTile_title")).toHaveText(wantOrder);
|
await expect(page.getByRole("group", { name: "Rooms" }).locator(".mx_RoomTile_title")).toHaveText(wantOrder);
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,8 +8,10 @@ Please see LICENSE files in the repository root for full details.
|
||||||
import { SettingLevel } from "../../../src/settings/SettingLevel";
|
import { SettingLevel } from "../../../src/settings/SettingLevel";
|
||||||
import { Layout } from "../../../src/settings/enums/Layout";
|
import { Layout } from "../../../src/settings/enums/Layout";
|
||||||
import { test, expect } from "../../element-web-test";
|
import { test, expect } from "../../element-web-test";
|
||||||
|
import { isDendrite } from "../../plugins/homeserver/dendrite";
|
||||||
|
|
||||||
test.describe("Threads", () => {
|
test.describe("Threads", () => {
|
||||||
|
test.skip(isDendrite, "due to a Dendrite bug https://github.com/element-hq/dendrite/issues/3489");
|
||||||
test.use({
|
test.use({
|
||||||
displayName: "Tom",
|
displayName: "Tom",
|
||||||
botCreateOpts: {
|
botCreateOpts: {
|
||||||
|
|
Loading…
Reference in New Issue