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

Updated tests #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions cypress/integration/test_filters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ describe('Test the filters and search for stories in Home page', () => {
cy.contains(testStory.title)
})

it('Filters stories based on Priority', () => {
setDropdown('priority', 'Low')

cy.contains('No stories')

setDropdown('priority', testStory.priority)

cy.contains(testStory.title)
})

it('Searches stories based on title', () => {
searchByTitle('random')

Expand Down
8 changes: 8 additions & 0 deletions cypress/integration/user_story.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ describe('Test new User Registration Workflow', () => {
})
})

describe('Test My Stories Page', () => {
it('Display the story created by the logged in author', () => {
cy.get('[data-cy=stories]').contains(testStory.title).click()

cy.url().should('contain', 'story')
})
})

describe('Test Home page', () => {
it('Displays story in home page, once created', () => {
cy.get('[data-cy=stories]').contains(testStory.title).click()
Expand Down