Skip to content
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