Skip to content

Commit

Permalink
test(add): add remaining settings profile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Jun 4, 2024
1 parent e2235f0 commit 9a8c541
Show file tree
Hide file tree
Showing 6 changed files with 410 additions and 22 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/01-pin-input.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe("Create Account and Login Tests", () => {
});

// Cannot be automated at this moment
xit("A8 - If Stay Unlocked is toggled on, user should bypass PIN page when logging in", () => {});
it.skip("A8 - If Stay Unlocked is toggled on, user should bypass PIN page when logging in", () => {});

it("A10 - User can see menu to switch to a different profile", () => {
loginPinPage.launchApplication();
Expand All @@ -99,5 +99,5 @@ describe("Create Account and Login Tests", () => {
});

// Cannot be automated at this moment
xit("A12 - If incorrect pin is entered, error message should be displayed", () => {});
it.skip("A12 - If incorrect pin is entered, error message should be displayed", () => {});
});
51 changes: 48 additions & 3 deletions cypress/e2e/03-chats-sidebar.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,54 @@ describe("Chats Sidebar Tests", () => {

it("C10 - Textbox should have highlighted border when clicking into Chat Search", () => {
chatsMainPage.ensureSidebarIsDisplayed();
chatsMainPage.inputSidebarSearch.click().type("test");
chatsMainPage.inputSidebarSearch.focus();
chatsMainPage.inputSidebarSearch
.parents(".input-group")
.should("have.css", "border-color", "rgb(215, 226, 255)");
.parents(".input-container")
.should("have.css", "box-shadow", "rgb(77, 77, 255) 0px 0px 0px 1px");
});

// Cannot be automated until app is wired
it.skip("C11 - ProfilePicFrame should display for any friends that have one", () => {
// Test code for C11
});

// Cannot be automated until app is wired
it.skip("C12 - Favorites should appear on left side of Sidebar", () => {
// Test code for C12
});

// Cannot be automated until app is wired
it.skip("C13 - Number of members in group should appear on that chat in both Sidebar and Favorites", () => {
// Test code for C13
});

// Cannot be automated until app is wired
it.skip("C14 - Clicking a favorite should take you to that chat", () => {
// Test code for C14
});

// Cannot be automated until app is wired
it.skip("C15 - Right clicking a chat in sidebar should open context menu", () => {
// Test code for C15
});

// Cannot be automated until app is wired
it.skip("C16 - Context menu should display: Favorite, Hide, Mark as read", () => {
// Test code for C16
});

// Cannot be automated until app is wired
it.skip("C17 - Timestamp of most recent message sent or received in chat should be displayed in the sidebar", () => {
// Test code for C17
});

// Cannot be automated until app is wired
it.skip("C18 - Typing indicator should be displayed around users profile picture when they are typing (this applies to favorites as well)", () => {
// Test code for C18
});

// Cannot be automated until app is wired
it.skip("C19 - After selecting Hide chat chat should no longer be displayed in sidebar", () => {
// Test code for C19
});
});
Loading

0 comments on commit 9a8c541

Please sign in to comment.