Skip to content

Commit 655086e

Browse files
committed
Update examples
1 parent 9a65e4a commit 655086e

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

examples/swag_labs_suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_swag_labs_basic_functional_flow(self, username):
8484
["problem_user"],
8585
])
8686
@pytest.mark.run(order=2)
87-
def test_swag_labs_products_page_resource_verification(self, username):
87+
def test_swag_labs_products_page_links(self, username):
8888
""" This test checks for 404 errors on the Swag Labs products page.
8989
This test is parameterized, and receives the user for login. """
9090
self.login_to_swag_labs(username=username)

examples/test_download_files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ def test_download_files(self):
1111
whl_file = pkg_name + "-py2.py3-none-any.whl"
1212
tar_gz_file = pkg_name + ".tar.gz"
1313

14-
# Click the links to download the files
15-
# (If using Safari, IE, or Chromium Guest Mode, download directly.)
14+
# Click the links to download the files into: "./downloaded_files/"
15+
# (If using Safari, IE, or Chromium Guest Mode: download directly.)
16+
# (The default Downloads Folder can't be changed when using those.)
1617
whl_selector = 'div#files a[href$="%s"]' % whl_file
1718
tar_selector = 'div#files a[href$="%s"]' % tar_gz_file
1819
if self.browser == "safari" or self.browser == "ie" or (

examples/translations/portuguese_test_1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ def test_exemplo_1(self):
88
self.abrir("https://pt.wikipedia.org/wiki/")
99
self.verificar_texto("Wikipédia")
1010
self.verificar_elemento('[title="Língua portuguesa"]')
11-
self.tipo("#searchInput", "João Pessoa")
11+
self.digitar("#searchInput", "João Pessoa")
1212
self.clique("#searchButton")
1313
self.verificar_texto("João Pessoa", "#firstHeading")
1414
self.verificar_elemento('img[alt*="João Pessoa"]')
15-
self.tipo("#searchInput", "Florianópolis")
15+
self.digitar("#searchInput", "Florianópolis")
1616
self.clique("#searchButton")
1717
self.verificar_texto("Florianópolis", "h1#firstHeading")
1818
self.verificar_elemento('img[alt*="Avenida Beira Mar"]')
1919
self.voltar()
2020
self.verificar_verdade("João" in self.obter_url_atual())
21-
self.tipo("#searchInput", "Teatro Amazonas")
21+
self.digitar("#searchInput", "Teatro Amazonas")
2222
self.clique("#searchButton")
2323
self.verificar_texto("Teatro Amazonas", "#firstHeading")
2424
self.verificar_texto_do_link("Festival Amazonas de Ópera")

help_docs/syntax_formats.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,17 @@ class MinhaClasseDeTeste(CasoDeTeste):
324324
self.abrir("https://pt.wikipedia.org/wiki/")
325325
self.verificar_texto("Wikipédia")
326326
self.verificar_elemento('[title="Língua portuguesa"]')
327-
self.tipo("#searchInput", "João Pessoa")
327+
self.digitar("#searchInput", "João Pessoa")
328328
self.clique("#searchButton")
329329
self.verificar_texto("João Pessoa", "#firstHeading")
330330
self.verificar_elemento('img[alt*="João Pessoa"]')
331-
self.tipo("#searchInput", "Florianópolis")
331+
self.digitar("#searchInput", "Florianópolis")
332332
self.clique("#searchButton")
333333
self.verificar_texto("Florianópolis", "h1#firstHeading")
334334
self.verificar_elemento('img[alt*="Avenida Beira Mar"]')
335335
self.voltar()
336336
self.verificar_verdade("João" in self.obter_url_atual())
337-
self.tipo("#searchInput", "Teatro Amazonas")
337+
self.digitar("#searchInput", "Teatro Amazonas")
338338
self.clique("#searchButton")
339339
self.verificar_texto("Teatro Amazonas", "#firstHeading")
340340
self.verificar_texto_do_link("Festival Amazonas de Ópera")

0 commit comments

Comments
 (0)