Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

1.1 KB
Raw Blame
Feature: SSR

  Scenario: Home page with a normal browser User-Agent should be client-side rendered
    Given I prepare a "GET" request to "/"
    And I set the "User-Agent" header to "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
    When I send the request
    Then I should see http status 200
    And I should not see ">Powered by Fider ⚡</a>" on the response body
    And I should see "This website requires JavaScript, please enable and reload the page." on the response body
    And I should see "/assets/js/vendor" on the response body

  Scenario: Home page with a GoogleBot User-Agent should be server-side rendered
    Given I prepare a "GET" request to "/"
    And I set the "User-Agent" header to "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    When I send the request
    Then I should see http status 200
    And I should see ">Powered by Fider ⚡</a>" on the response body
    And I should not see "This website requires JavaScript, please enable and reload the page." on the response body
    And I should not see "/assets/js/vendor" on the response body