Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(add): add remaining settings profile tests #23

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-PR-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: regex-match
with:
text: ${{ github.event.pull_request.title }}
regex: '(?:add|update|task|chore|feat|fix|refactor)\([a-z-A-Z]+\):\s.+'
regex: '(?:add|update|task|test|chore|feat|fix|refactor)\([a-z-A-Z]+\):\s.+'

- uses: actions-ecosystem/action-create-comment@v1
if: ${{ steps.regex-match.outputs.match == '' }}
Expand Down
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
Loading