<commit_before># Navigational links: open in same tab
# Non-Navigational links: open in new tab
Feature: test the Rate Checker inbound and outbound links
  As a first time visitor to the Rate Checker page
  I want to click on links
  So that I can make informed choices when shopping for a mortgage loan

Background:
  Given I navigate to the "Rate Checker" page

@rate_checker
Scenario Outline: Click Non-Navigational links
  When I click on the "<link_name>" link in the Rate Checker page
  Then I should see the "<relative_url>" URL with page title <page_title> open in a new tab

Examples:
  | link_name                               | relative_url                                                    | page_title                                  	 |
  | Loan Estimates                    | askcfpb/1995/what-is-a-loan-estimate.html    | Consumer Financial Protection Bureau              	 |
  | discount points                         | askcfpb/136/what-are-discount-points-or-points.html             | What are discount points or points?         	 |
  | rate lock                               | askcfpb/143/whats-a-lock-in-or-a-rate-lock.html                 | What's a lock-in or a rate lock?            	 |
  | checked your credit report recently     | annualcreditreport.com                                          | Annual Credit Report.com                    	 |
  | get them corrected                      | askcfpb/314/how-do-i-dispute-an-error-on-my-credit-report.html  | How do I dispute an error on my credit report? |
  | www.informars.com                       | informars.com                                                   | Informa Research Services                      |
  | kind of loan                            | owning-a-home/loan-options/                                     | Consumer Financial Protection Bureau           |
  | points | http://www.consumerfinance.gov/askcfpb/136/what-are-discount-points-or-points.html | Consumer Financial Protection Bureau |
  | mortgage insurance | http://www.consumerfinance.gov/askcfpb/1953/what-is-mortgage-insurance-and-how-does-it-work.html | Consumer Financial Protection Bureau |
  | closing costs | http://www.consumerfinance.gov/askcfpb/139/what-are-closing-costs.html | Consumer Financial Protection Bureau |
  | Loan Estimates | http://consumerfinance.gov/askcfpb/1995/what-is-a-loan-estimate.html | Consumer Financial Protection Bureau |

@rate_checker
Scenario Outline: Click Non-Navigational links inside tab page
  When I click on the "I won’t buy for several months" tab in the Rate Checker page
    And I click on the "<link_name>" link in the Rate Checker page
  Then I should see the "<relative_url>" URL with page title <page_title> open in a new tab

Examples:
  | link_name                                 | relative_url                                                    | page_title                                  |
  | Loan Estimates                    | askcfpb/1995/what-is-a-loan-estimate.html    | Consumer Financial Protection Bureau                |
  | Learn more about credit scores            | askcfpb/315/what-is-my-credit-score.html                        | What is my credit score?                    |
  | Learn about improving your credit scores  | askcfpb/318/how-do-i-get-and-keep-a-good-credit-score.html      | How do I get and keep a good credit score?  |
  | Learn more about down payments            | askcfpb/120/what-kind-of-down-payment-do-i-need-how-does-the-amount-of-down-payment-i-make-affect-the-terms-of-my-mortgage-loan.html | What kind of down payment do I need?        |

@rate_checker
Scenario: Click internal links
  When I click on the "About our data source" link in the Rate Checker page
  Then I should see the page scroll to the "#about" section<commit_msg>added missing www to Loan Estimates link<commit_after># Navigational links: open in same tab
# Non-Navigational links: open in new tab
Feature: test the Rate Checker inbound and outbound links
  As a first time visitor to the Rate Checker page
  I want to click on links
  So that I can make informed choices when shopping for a mortgage loan

Background:
  Given I navigate to the "Rate Checker" page

@rate_checker
Scenario Outline: Click Non-Navigational links
  When I click on the "<link_name>" link in the Rate Checker page
  Then I should see the "<relative_url>" URL with page title <page_title> open in a new tab

Examples:
  | link_name                               | relative_url                                                    | page_title                                  	 |
  | Loan Estimates                    | askcfpb/1995/what-is-a-loan-estimate.html    | Consumer Financial Protection Bureau              	 |
  | discount points                         | askcfpb/136/what-are-discount-points-or-points.html             | What are discount points or points?         	 |
  | rate lock                               | askcfpb/143/whats-a-lock-in-or-a-rate-lock.html                 | What's a lock-in or a rate lock?            	 |
  | checked your credit report recently     | annualcreditreport.com                                          | Annual Credit Report.com                    	 |
  | get them corrected                      | askcfpb/314/how-do-i-dispute-an-error-on-my-credit-report.html  | How do I dispute an error on my credit report? |
  | www.informars.com                       | informars.com                                                   | Informa Research Services                      |
  | kind of loan                            | owning-a-home/loan-options/                                     | Consumer Financial Protection Bureau           |
  | points | http://www.consumerfinance.gov/askcfpb/136/what-are-discount-points-or-points.html | Consumer Financial Protection Bureau |
  | mortgage insurance | http://www.consumerfinance.gov/askcfpb/1953/what-is-mortgage-insurance-and-how-does-it-work.html | Consumer Financial Protection Bureau |
  | closing costs | http://www.consumerfinance.gov/askcfpb/139/what-are-closing-costs.html | Consumer Financial Protection Bureau |
  | Loan Estimates | http://www.consumerfinance.gov/askcfpb/1995/what-is-a-loan-estimate.html | Consumer Financial Protection Bureau |

@rate_checker
Scenario Outline: Click Non-Navigational links inside tab page
  When I click on the "I won’t buy for several months" tab in the Rate Checker page
    And I click on the "<link_name>" link in the Rate Checker page
  Then I should see the "<relative_url>" URL with page title <page_title> open in a new tab

Examples:
  | link_name                                 | relative_url                                                    | page_title                                  |
  | Loan Estimates                    | askcfpb/1995/what-is-a-loan-estimate.html    | Consumer Financial Protection Bureau                |
  | Learn more about credit scores            | askcfpb/315/what-is-my-credit-score.html                        | What is my credit score?                    |
  | Learn about improving your credit scores  | askcfpb/318/how-do-i-get-and-keep-a-good-credit-score.html      | How do I get and keep a good credit score?  |
  | Learn more about down payments            | askcfpb/120/what-kind-of-down-payment-do-i-need-how-does-the-amount-of-down-payment-i-make-affect-the-terms-of-my-mortgage-loan.html | What kind of down payment do I need?        |

@rate_checker
Scenario: Click internal links
  When I click on the "About our data source" link in the Rate Checker page
  Then I should see the page scroll to the "#about" section
{'fraction_non_alphanumeric': 0.0735930735930736, 'fraction_numerical': 0.010494555949101404, 'mean_word_length': 1.8070692194403535, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5625660', 'n_tokens_mistral': 2124, 'n_tokens_neox': 1945, 'n_words': 655}