forked from makersacademy/acebook-mern-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from abodian/timestamp
Added timestamps
- Loading branch information
Showing
5 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,15 @@ it("tests to see if the post button and box works properly", () => { | |
cy.url().should('include', '/posts'); | ||
cy.get('#feed').should('contain', 'cypress test 2') | ||
}) | ||
}) | ||
it("tests to see if the post button and box works properly", () => { | ||
// need to login in from the login page | ||
cy.visit('/login'); | ||
cy.get("#email").type("[email protected]"); | ||
cy.get("#password").type("password"); | ||
cy.get("#submit").click(); | ||
cy.get('#message').type('cypress test 2'); | ||
cy.get('#submit').click(); | ||
cy.url().should('include', '/posts'); | ||
cy.get('#feed').should('contain', '2023-02-14') | ||
}) | ||
}); |
Binary file added
BIN
+111 KB
...post.cy.js/post function -- tests to see if a posts can be deleted (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-46.6 KB
...post/Post.cy.js/Post -- renders a post with a message and username (failed).png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters