Change settings to true by default (#25)
|
@ -10,10 +10,6 @@ import { test } from "./index";
|
||||||
import { expect } from "../../element-web-test";
|
import { expect } from "../../element-web-test";
|
||||||
|
|
||||||
test.describe("Pinned messages", () => {
|
test.describe("Pinned messages", () => {
|
||||||
test.use({
|
|
||||||
labsFlags: ["feature_pinning"],
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should show the empty state when there are no pinned messages", async ({ page, app, room1, util }) => {
|
test("should show the empty state when there are no pinned messages", async ({ page, app, room1, util }) => {
|
||||||
await util.goTo(room1);
|
await util.goTo(room1);
|
||||||
await util.openRoomInfo();
|
await util.openRoomInfo();
|
||||||
|
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
|
@ -280,7 +280,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
||||||
displayName: _td("labs|pinning"),
|
displayName: _td("labs|pinning"),
|
||||||
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG_PRIORITISED,
|
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG_PRIORITISED,
|
||||||
supportedLevelsAreOrdered: true,
|
supportedLevelsAreOrdered: true,
|
||||||
default: false,
|
default: true,
|
||||||
},
|
},
|
||||||
"feature_wysiwyg_composer": {
|
"feature_wysiwyg_composer": {
|
||||||
isFeature: true,
|
isFeature: true,
|
||||||
|
|
|
@ -571,7 +571,10 @@ export function mkStubRoom(
|
||||||
name: string | undefined,
|
name: string | undefined,
|
||||||
client: MatrixClient | undefined,
|
client: MatrixClient | undefined,
|
||||||
): Room {
|
): Room {
|
||||||
const stubTimeline = { getEvents: (): MatrixEvent[] => [] } as unknown as EventTimeline;
|
const stubTimeline = {
|
||||||
|
getEvents: (): MatrixEvent[] => [],
|
||||||
|
getState: (): RoomState | undefined => undefined,
|
||||||
|
} as unknown as EventTimeline;
|
||||||
return {
|
return {
|
||||||
canInvite: jest.fn(),
|
canInvite: jest.fn(),
|
||||||
client,
|
client,
|
||||||
|
|