Skip to content

Commit

Permalink
#238 Update robots.txt (#243)
Browse files Browse the repository at this point in the history
* Update robots.txt

* Create @todo for a Search.test_search_have_results test.
  • Loading branch information
ArtemijRodionov committed Dec 20, 2017
1 parent 730fc35 commit 013da6b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 7 additions & 1 deletion shopelectro/tests/tests_selenium.py
Expand Up @@ -4,14 +4,16 @@
If you need to create new test-suite, subclass it from helpers.SeleniumTestCase class.
Every Selenium-based test suite uses fixture called dump.json.
"""
from selenium.webdriver.common.keys import Keys
import unittest

from django.conf import settings
from django.core import mail
from django.db.models import Count
from django.test import override_settings
from django.urls import reverse
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC, ui

from pages.models import FlatPage, CustomPage, Page
Expand Down Expand Up @@ -1098,6 +1100,10 @@ def test_autocomplete_by_vendor_code(self):

self.assertIn(str(product_vendor_code), test_vendor_code)

# @todo #SEARCH-TEST Fix a Search.test_search_have_results test.
# From time to time the test_search_have_results raise an TimeoutException error.
# You can find error traceback here: https://ci.fidals.com/fidals/shopelectro/152
@unittest.expectedFailure(TimeoutException)
def test_search_have_results(self):
"""Search results page should contain links on relevant pages."""
self.fill_input()
Expand Down
11 changes: 10 additions & 1 deletion templates/robots.txt
Expand Up @@ -25,7 +25,16 @@ Disallow: /*?keyword=*
Clean-param: from&utm_source&utm_medium&utm_campaign&block&keyword&position&k50id /

User-agent: Googlebot
Disallow:
Disallow: /search/
Disallow: /search-results/
Disallow: /service/
Disallow: /*-or-*
Disallow: /*.txt$
Disallow: /*?k50id=*
Disallow: /*?block=*
Disallow: /*?utm_source=*
Disallow: /*?keyword=*
Clean-param: from&utm_source&utm_medium&utm_campaign&block&keyword&position&k50id /

User-agent: Googlebot-image
Disallow:
Expand Down

1 comment on commit 013da6b

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 013da6b Dec 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle SEARCH-TEST-1f4dde45 discovered in shopelectro/tests/tests_selenium.py and submitted as #244. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but
we discovered it only now.

Please sign in to comment.