Skip to content

Commit 963e288

Browse files
authored
Merge pull request #797 from seleniumbase/fix-dashboard-and-more
Fix the dashboard and more
2 parents c78d052 + 92cd8a1 commit 963e288

File tree

13 files changed

+39
-21
lines changed

13 files changed

+39
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- View on GitHub -->
1515
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/releases">
1616
<img src="https://img.shields.io/github/v/release/seleniumbase/SeleniumBase.svg?color=2277EE" alt="Latest Release on GitHub" /></a> <a href="https://pypi.python.org/pypi/seleniumbase">
17-
<img src="https://img.shields.io/pypi/v/seleniumbase.svg?color=22AAEE" alt="Latest Release on PyPI" /></a> <a href="https://github.com/seleniumbase/SeleniumBase/actions">
17+
<img src="https://img.shields.io/pypi/v/seleniumbase.svg?color=22AAEE" alt="Latest Release on PyPI" /></a> <a href="https://github.com/seleniumbase/SeleniumBase/actions">
1818
<img src="https://github.com/seleniumbase/SeleniumBase/workflows/CI%20build/badge.svg" alt="SeleniumBase GitHub Actions" /></a> <a href="https://dev.azure.com/seleniumbase/seleniumbase/_build/latest?definitionId=1&branchName=master"> <img src="https://dev.azure.com/seleniumbase/seleniumbase/_apis/build/status/seleniumbase.SeleniumBase?branchName=master" alt="SeleniumBase Azure Pipelines" /></a> <a href="https://gitter.im/seleniumbase/SeleniumBase">
1919
<img src="https://badges.gitter.im/seleniumbase/SeleniumBase.svg" alt="SeleniumBase" /></a> <a href="https://github.com/seleniumbase/SeleniumBase/stargazers"><img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg?color=19A57B" title="Stargazers" /></a> <a href="https://seleniumbase.io">
2020
<img src="https://img.shields.io/badge/docs-%20seleniumbase.io-22BBAA.svg" alt="SeleniumBase.io Docs" /></a></p>

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ tqdm>=4.56.0
33
livereload==2.6.3;python_version>="3.6"
44
Markdown==3.3.3
55
readme-renderer==28.0
6-
pymdown-extensions==8.1
6+
pymdown-extensions==8.1.1
77
mkdocs==1.1.2
8-
mkdocs-material==6.2.5
8+
mkdocs-material==6.2.6
99
mkdocs-simple-hooks==0.1.2
1010
mkdocs-material-extensions==1.0.1
1111
mkdocs-minify-plugin==0.4.0

help_docs/syntax_formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<p>(<b><a href="https://youtu.be/VvwtS9_1m0s">Watch this tutorial on YouTube</a></b>)</p>
77

8-
[<img src="http://img.youtube.com/vi/VvwtS9_1m0s/mq1.jpg" title="15 SeleniumBase syntax formats" width="255">](https://youtu.be/VvwtS9_1m0s)
8+
[<img src="http://img.youtube.com/vi/VvwtS9_1m0s/mq1.jpg" title="15 SeleniumBase syntax formats" width="270">](https://youtu.be/VvwtS9_1m0s)
99

1010
--------
1111

integrations/google_cloud/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(This tutorial, [from a previous Google Cloud Meetup](https://www.meetup.com/Boston-Google-Cloud-Meetup/events/230839686/?showDescription=true), will teach you how to setup a Linux server for running automated browser tests. The cost of running this server is about [$13.61/month on Google Cloud](https://console.cloud.google.com/launcher/details/bitnami-launchpad/jenkins) (enough to handle **5 parallel tests**). This is less expensive than using other platforms such as [BrowserStack](https://www.browserstack.com/pricing) or [Sauce Labs](https://saucelabs.com/pricing).)
44

5-
[Here's a quick video recap on YouTube:](https://www.youtube.com/watch?v=n-sno20R9P0)
5+
([Here's a quick video recap on YouTube:](https://www.youtube.com/watch?v=n-sno20R9P0))
66

77
[<img src="https://seleniumbase.io/other/gcp_video_thumb.png" title="SeleniumBase on Google Cloud Platform" width="304">](https://www.youtube.com/watch?v=n-sno20R9P0)
88

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ markdown_extensions:
1717
- markdown.extensions.attr_list
1818
- markdown.extensions.codehilite
1919
- markdown.extensions.meta
20-
- markdown.extensions.md_in_html
2120
- markdown.extensions.def_list
2221
- markdown.extensions.footnotes
2322
- markdown.extensions.toc:
@@ -38,6 +37,9 @@ theme:
3837
- navigation.sections
3938
# - navigation.tabs
4039
# - navigation.instant
40+
extra:
41+
search:
42+
language: en
4143
palette:
4244
scheme: default
4345
primary: blue
@@ -52,6 +54,7 @@ plugins:
5254
- search
5355
- minify:
5456
minify_html: true
57+
minify_js: true
5558
- mkdocs-simple-hooks:
5659
hooks:
5760
on_pre_build: docs.prepare:main

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jedi==0.18.0;python_version>="3.6"
1919
idna==2.10
2020
chardet==3.0.4;python_version<"3.6"
2121
chardet==4.0.0;python_version>="3.6"
22-
urllib3==1.26.2
22+
urllib3==1.26.3
2323
requests==2.25.1
2424
selenium==3.141.0
2525
msedge-selenium-tools==3.141.3
@@ -69,7 +69,7 @@ importlib-metadata==2.0.0;python_version<"3.6"
6969
virtualenv>=20.4.0
7070
pymysql==0.10.1;python_version<"3.6"
7171
pymysql==1.0.2;python_version>="3.6"
72-
coverage==5.3.1
72+
coverage==5.4
7373
brython==3.9.1
7474
pyotp==2.4.1
7575
boto==2.49.0

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "1.53.2"
2+
__version__ = "1.53.3"

seleniumbase/console_scripts/sb_mkdir.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def invalid_run_command(msg=None):
4343
exp += " test frameworks.\n"
4444
if not msg:
4545
raise Exception('INVALID RUN COMMAND!\n\n%s' % exp)
46+
elif msg == "help":
47+
print("\n%s" % exp)
48+
sys.exit()
4649
else:
4750
raise Exception('INVALID RUN COMMAND!\n\n%s\n%s\n' % (exp, msg))
4851

@@ -66,7 +69,9 @@ def main():
6669

6770
command_args = sys.argv[2:]
6871
dir_name = command_args[0]
69-
if len(str(dir_name)) < 2:
72+
if dir_name == "-h" or dir_name == "--help":
73+
invalid_run_command("help")
74+
elif len(str(dir_name)) < 2:
7075
error_msg = (
7176
'Directory name length must be at least 2 characters long!')
7277
elif "/" in str(dir_name) or "\\" in str(dir_name):
@@ -85,7 +90,7 @@ def main():
8590
options = command_args[1:]
8691
for option in options:
8792
option = option.lower()
88-
if option == "help" or option == "--help":
93+
if option == "-h" or option == "--help":
8994
help_me = True
9095
elif option == "-b" or option == "--basic":
9196
basic = True

seleniumbase/console_scripts/sb_mkfile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def invalid_run_command(msg=None):
6262
exp += ' is included.\n'
6363
if not msg:
6464
raise Exception('INVALID RUN COMMAND!\n\n%s' % exp)
65+
elif msg == "help":
66+
print("\n%s" % exp)
67+
sys.exit()
6568
else:
6669
raise Exception('INVALID RUN COMMAND!\n\n%s\n%s\n' % (exp, msg))
6770

@@ -86,7 +89,9 @@ def main():
8689

8790
command_args = sys.argv[2:]
8891
file_name = command_args[0]
89-
if not file_name.endswith(".py"):
92+
if file_name == "-h" or file_name == "--help":
93+
invalid_run_command("help")
94+
elif not file_name.endswith(".py"):
9095
error_msg = 'File name must end with ".py"!'
9196
elif "*" in file_name or len(str(file_name)) < 4:
9297
error_msg = 'Invalid file name!'
@@ -105,7 +110,7 @@ def main():
105110
options = command_args[1:]
106111
for option in options:
107112
option = option.lower()
108-
if option == "help" or option == "--help":
113+
if option == "-h" or option == "--help":
109114
help_me = True
110115
elif option == "-b" or option == "--basic":
111116
basic = True

seleniumbase/fixtures/base_case.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6795,15 +6795,16 @@ def __process_dashboard(self, has_exception, init=False):
67956795
return
67966796
if hasattr(self, "_using_sb_fixture") and (
67976797
test_id not in sb_config._results.keys()):
6798-
cwd = os.getcwd()
6799-
if '\\' in cwd:
6800-
cwd = cwd.split('\\')[-1]
6801-
else:
6802-
cwd = cwd.split('/')[-1]
68036798
if test_id.count('.') > 1:
68046799
alt_test_id = '.'.join(test_id.split('.')[1:])
68056800
if alt_test_id in sb_config._results.keys():
68066801
sb_config._results.pop(alt_test_id)
6802+
elif test_id.count('.') == 1:
6803+
alt_test_id = sb_config._display_id[test_id]
6804+
alt_test_id = alt_test_id.replace(".py::", ".")
6805+
alt_test_id = alt_test_id.replace("::", ".")
6806+
if alt_test_id in sb_config._results.keys():
6807+
sb_config._results.pop(alt_test_id)
68076808
if test_id in sb_config._results.keys() and (
68086809
sb_config._results[test_id] == "Skipped"):
68096810
sb_config.item_count_skipped += 1

0 commit comments

Comments
 (0)