From fa90171f92da0b144b7ad776d20b7bd7018af15d Mon Sep 17 00:00:00 2001 From: mharshita Date: Wed, 18 Aug 2021 17:42:14 +0530 Subject: [PATCH] updated tests --- cypress/integration/test_filters.spec.js | 10 ++++++++++ cypress/integration/user_story.spec.js | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/cypress/integration/test_filters.spec.js b/cypress/integration/test_filters.spec.js index aeb9fe92..eaf91c07 100644 --- a/cypress/integration/test_filters.spec.js +++ b/cypress/integration/test_filters.spec.js @@ -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') diff --git a/cypress/integration/user_story.spec.js b/cypress/integration/user_story.spec.js index b430dd72..d6232754 100644 --- a/cypress/integration/user_story.spec.js +++ b/cypress/integration/user_story.spec.js @@ -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()