Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8785111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:16:12+00:00 2026-06-13T21:16:12+00:00

I have some problems with my cucumber testing scenario, where unfortunately I have an

  • 0

I have some problems with my cucumber testing scenario, where unfortunately I have an error:

When I follow "More about Star Wars"                        # features/step_definitions/web_steps.rb:56

  no link with title, id or text 'More about Star Wars' found (Capybara::ElementNotFound)
  (eval):2:in `click_link'

  ./features/step_definitions/web_steps.rb:57:in `/^(?:|I )follow "([^"]*)"$/'
  features/find_movie_with_same_director.feature:18:in `When I follow "More about Star Wars"'

I guess that it is connected with dynamic links to extract proper id.
Of course everything is working in browser and also when I test creating new record.

Details are added below

Could somebody to help me to find proper solution of my test scenario ??

In app/views/movies/index.html.haml:

 %tbody
- @movies.each do |movie|

  %tr
    %td= movie.title 
    %td= movie.rating
    %td= movie.release_date
    %td= movie.director
    %td= link_to "More about #{movie.title}", movie_path(movie)
    %td= movie_path(movie)
  =link_to 'Add new movie', new_movie_path

In features/step_definition/web_steps.rb:

When /^(?:|I )follow "([^"]*)"$/ do |link|
  click_link(link)
end

In my feature file:

Feature: search for movies by director

Scenario: find movie with the same director
 As a movie buff
 So that I can find movies with my favorite director
 I want to include and search on director information in movies I enter

Background: movies in database
  Given the following movies exist:
  | title        | rating | director     | release_date |
  | Star Wars    | PG     | George Lucas |   1977-05-25 |
  | Blade Runner | PG     | Ridley Scott |   1982-06-25 |
  | Alien        | R      |              |   1979-05-25 |
  | THX-1138     | R      | George Lucas |   1971-03-11 |

  Given I am on the home page
  When I follow "More about Star Wars"
  Then  I should be on the details page for "Star Wars"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:16:13+00:00Added an answer on June 13, 2026 at 9:16 pm
    Feature: search for movies by director
    
      As a movie buff
      So that I can find movies with my favorite director
      I want to include and search on director information in movies I enter
    
    Background: movies in database
    Given the following movies exist:
      | title        | rating | director     | release_date |
      | Star Wars    | PG     | George Lucas |   1977-05-25 |
      | Blade Runner | PG     | Ridley Scott |   1982-06-25 |
      | Alien        | R      |              |   1979-05-25 |
      | THX-1138     | R      | George Lucas |   1971-03-11 |
      | THX-1131     | G      | George Lucas |   1971-03-11 |
    
    Scenario: find movie with same director
      Given I am on the RottenPotatoes home page
      And I check "ratings_PG"
      And I press "Refresh"
      When I follow "More about Star Wars"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some problems with album with more than 25 photos... my code is:
I have some problems with deleting object. I am getting the following error: [Test.Item#ab9a9869-b2c1-4262-8d33-9dd9010abd96][SQL:
I have some problems with replaceregexp . To be more understandable, i'll use simple
I have some problems with my DAO implementation. My scenario: I insert one entity
I have some problems calling a constructor with a hash. I get the error:
i have some problems with a Query seem IN dosen't work with Group_concat, that
I have some problems with Javascript. In fact, I'm just newbie in that script
I have some problems with header() function. It works and doesn't work at the
I have some problems with my first Open Graph custom action: I've created a
I have some problems sending mails through SMTP using Spring's MailSender interface and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.