Update roles cypress is looking for (#10708)
* Update roles cypress is looking for * Fix sliding sync test
This commit is contained in:
parent
621fdf1313
commit
4b1b9b17ef
6 changed files with 6 additions and 8 deletions
|
@ -67,7 +67,7 @@ const INTEGRATION_MANAGER_HTML = `
|
||||||
`;
|
`;
|
||||||
|
|
||||||
function openIntegrationManager() {
|
function openIntegrationManager() {
|
||||||
cy.findByRole("tab", { name: "Room info" }).click();
|
cy.findByRole("button", { name: "Room info" }).click();
|
||||||
cy.get(".mx_RoomSummaryCard_appsGroup").within(() => {
|
cy.get(".mx_RoomSummaryCard_appsGroup").within(() => {
|
||||||
cy.findByRole("button", { name: "Add widgets, bridges & bots" }).click();
|
cy.findByRole("button", { name: "Add widgets, bridges & bots" }).click();
|
||||||
});
|
});
|
||||||
|
|
|
@ -117,7 +117,7 @@ describe("Lazy Loading", () => {
|
||||||
|
|
||||||
function openMemberlist(): void {
|
function openMemberlist(): void {
|
||||||
cy.get(".mx_HeaderButtons").within(() => {
|
cy.get(".mx_HeaderButtons").within(() => {
|
||||||
cy.findByRole("tab", { name: "Room info" }).click();
|
cy.findByRole("button", { name: "Room info" }).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.get(".mx_RoomSummaryCard").within(() => {
|
cy.get(".mx_RoomSummaryCard").within(() => {
|
||||||
|
|
|
@ -75,7 +75,7 @@ describe("Poll history", () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
function openPollHistory(): void {
|
function openPollHistory(): void {
|
||||||
cy.findByRole("tab", { name: "Room info" }).click();
|
cy.findByRole("button", { name: "Room info" }).click();
|
||||||
cy.get(".mx_RoomSummaryCard").within(() => {
|
cy.get(".mx_RoomSummaryCard").within(() => {
|
||||||
cy.findByRole("button", { name: "Poll history" }).click();
|
cy.findByRole("button", { name: "Poll history" }).click();
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,7 +24,7 @@ const NAME = "Alice";
|
||||||
|
|
||||||
const viewRoomSummaryByName = (name: string): Chainable<JQuery<HTMLElement>> => {
|
const viewRoomSummaryByName = (name: string): Chainable<JQuery<HTMLElement>> => {
|
||||||
cy.viewRoomByName(name);
|
cy.viewRoomByName(name);
|
||||||
cy.findByRole("tab", { name: "Room info" }).click();
|
cy.findByRole("button", { name: "Room info" }).click();
|
||||||
return checkRoomSummaryCard(name);
|
return checkRoomSummaryCard(name);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -241,9 +241,7 @@ describe("Sliding Sync", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should update user settings promptly", () => {
|
it("should update user settings promptly", () => {
|
||||||
cy.findByRole("button", { name: "User menu" }).click();
|
cy.openUserSettings("Preferences");
|
||||||
cy.findByRole("menuitem", { name: "All settings" }).click();
|
|
||||||
cy.findByRole("button", { name: "Preferences" }).click();
|
|
||||||
cy.contains(".mx_SettingsFlag", "Show timestamps in 12 hour format")
|
cy.contains(".mx_SettingsFlag", "Show timestamps in 12 hour format")
|
||||||
.should("exist")
|
.should("exist")
|
||||||
.find(".mx_ToggleSwitch_on")
|
.find(".mx_ToggleSwitch_on")
|
||||||
|
|
|
@ -295,7 +295,7 @@ describe("Threads", () => {
|
||||||
cy.get(".mx_ThreadSummary_content").findByText("How are things?").should("exist");
|
cy.get(".mx_ThreadSummary_content").findByText("How are things?").should("exist");
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.findByRole("tab", { name: "Threads" })
|
cy.findByRole("button", { name: "Threads" })
|
||||||
.should("have.class", "mx_RightPanel_headerButton_unread") // User asserts thread list unread indicator
|
.should("have.class", "mx_RightPanel_headerButton_unread") // User asserts thread list unread indicator
|
||||||
.click(); // User opens thread list
|
.click(); // User opens thread list
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue