Update roles cypress is looking for (#10708)
* Update roles cypress is looking for * Fix sliding sync test
This commit is contained in:
committed by
GitHub
parent
621fdf1313
commit
4b1b9b17ef
@@ -67,7 +67,7 @@ const INTEGRATION_MANAGER_HTML = `
|
||||
`;
|
||||
|
||||
function openIntegrationManager() {
|
||||
cy.findByRole("tab", { name: "Room info" }).click();
|
||||
cy.findByRole("button", { name: "Room info" }).click();
|
||||
cy.get(".mx_RoomSummaryCard_appsGroup").within(() => {
|
||||
cy.findByRole("button", { name: "Add widgets, bridges & bots" }).click();
|
||||
});
|
||||
|
||||
@@ -117,7 +117,7 @@ describe("Lazy Loading", () => {
|
||||
|
||||
function openMemberlist(): void {
|
||||
cy.get(".mx_HeaderButtons").within(() => {
|
||||
cy.findByRole("tab", { name: "Room info" }).click();
|
||||
cy.findByRole("button", { name: "Room info" }).click();
|
||||
});
|
||||
|
||||
cy.get(".mx_RoomSummaryCard").within(() => {
|
||||
|
||||
@@ -75,7 +75,7 @@ describe("Poll history", () => {
|
||||
};
|
||||
|
||||
function openPollHistory(): void {
|
||||
cy.findByRole("tab", { name: "Room info" }).click();
|
||||
cy.findByRole("button", { name: "Room info" }).click();
|
||||
cy.get(".mx_RoomSummaryCard").within(() => {
|
||||
cy.findByRole("button", { name: "Poll history" }).click();
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@ const NAME = "Alice";
|
||||
|
||||
const viewRoomSummaryByName = (name: string): Chainable<JQuery<HTMLElement>> => {
|
||||
cy.viewRoomByName(name);
|
||||
cy.findByRole("tab", { name: "Room info" }).click();
|
||||
cy.findByRole("button", { name: "Room info" }).click();
|
||||
return checkRoomSummaryCard(name);
|
||||
};
|
||||
|
||||
|
||||
@@ -241,9 +241,7 @@ describe("Sliding Sync", () => {
|
||||
});
|
||||
|
||||
it("should update user settings promptly", () => {
|
||||
cy.findByRole("button", { name: "User menu" }).click();
|
||||
cy.findByRole("menuitem", { name: "All settings" }).click();
|
||||
cy.findByRole("button", { name: "Preferences" }).click();
|
||||
cy.openUserSettings("Preferences");
|
||||
cy.contains(".mx_SettingsFlag", "Show timestamps in 12 hour format")
|
||||
.should("exist")
|
||||
.find(".mx_ToggleSwitch_on")
|
||||
|
||||
@@ -295,7 +295,7 @@ describe("Threads", () => {
|
||||
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
|
||||
.click(); // User opens thread list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user