Skip to content

Commit da08884

Browse files
committed
Update the documentation
1 parent 6942af2 commit da08884

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<br />
2828
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/commander.md">🎖️ GUI</a> |
2929
<a href="https://seleniumbase.io/demo_page">📰 TestPage</a> |
30-
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/case_plans.md">📒 CasePlans</a> |
30+
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/case_plans.md">🗂️ CasePlans</a> |
3131
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/html_inspector.md">🔎 Inspector</a> |
3232
<a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/master_qa/ReadMe.md">🧬 Hybrid</a> |
3333
<a href="https://seleniumbase.io/devices/?url=seleniumbase.com">💻 Farm</a>
@@ -877,9 +877,9 @@ self.wait_for_element_present("div.my_class", timeout=10)
877877
self.wait_for_element_visible("a.my_class", timeout=5)
878878
```
879879
880-
(NOTE: The short versions of this are ``self.find_element(ELEMENT)`` and ``self.assert_element(ELEMENT)``. The find_element() version returns the element)
880+
(NOTE: The short versions of that are ``self.find_element(ELEMENT)`` and ``self.assert_element(ELEMENT)``. The ``find_element()`` version returns the element.)
881881
882-
Since the line above returns the element, you can combine that with .click() as shown below:
882+
Since the line above returns the element, you can combine that with ``.click()`` as shown below:
883883
884884
```python
885885
self.find_element("a.my_class", timeout=5).click()

help_docs/case_plans.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## [<img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) SeleniumBase Case Plans 📒🗂️
1+
## [<img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) SeleniumBase Case Plans 🗂️
22

33
<img src="https://seleniumbase.io/cdn/img/cp/sb_case_plans.png" title="SeleniumBase Case Plans Summary" width="625">
44

5-
📒 <b>SeleniumBase Case Plans</b> is Test Case Management Software that uses Markdown tables for displaying test plans directly in GitHub (and other source code management systems that support Markdown format).
5+
🗂️ <b>SeleniumBase Case Plans</b> is Test Case Management Software that uses Markdown tables for displaying test plans directly in GitHub (and other source code management systems that support Markdown format).
66

7-
📒 The ``case_summary.md`` file is generated from individual Case Plans that exist in the ``case_plans/`` folders of your repository. (See the example below to learn how the Case Summary file may look.)
7+
🗂️ The ``case_summary.md`` file is generated from individual Case Plans that exist in the ``case_plans/`` folders of your repository. (See the example below to learn how the Case Summary file may look.)
88

99
--------
1010

@@ -152,15 +152,15 @@
152152

153153
--------
154154

155-
📒 Before you can generate a ``case_summary.md`` file that includes your existing Case Plans, first you'll need to select which existing tests you want to create boilerplate Case Plans from. For that, you can use the SeleniumBase Case Plans GUI:
155+
🗂️ Before you can generate a ``case_summary.md`` file that includes your existing Case Plans, first you'll need to select which existing tests you want to create boilerplate Case Plans from. For that, you can use the SeleniumBase Case Plans GUI:
156156

157157
```bash
158158
sbase caseplans
159159
```
160160

161161
<img src="https://seleniumbase.io/cdn/img/cp/case_plan_boilerplate_gen.png" title="SeleniumBase Case Plans GUI" width="525">
162162

163-
📒 Once you are running the Case Plans GUI, select the existing tests that need Case Plans, and then click: ``Generate boilerplate Case Plans for selected tests missing them``. For each selected test that didn't already have a Case Plan file, one will be generated. Each new Case Plan file starts with default boilerplate code with a Markdown table. Eg:
163+
🗂️ Once you are running the Case Plans GUI, select the existing tests that need Case Plans, and then click: ``Generate boilerplate Case Plans for selected tests missing them``. For each selected test that didn't already have a Case Plan file, one will be generated. Each new Case Plan file starts with default boilerplate code with a Markdown table. Eg:
164164

165165
```bash
166166
``proxy_test.py::ProxyTests::test_proxy``
@@ -172,7 +172,7 @@ sbase caseplans
172172

173173
```
174174

175-
📒 When rendered as a Markdown table, the result looks like this:
175+
🗂️ When rendered as a Markdown table, the result looks like this:
176176

177177
``proxy_test.py::ProxyTests::test_proxy``
178178
---
@@ -181,9 +181,9 @@ sbase caseplans
181181
| 1 | Perform Action 1 | Verify Action 1 |
182182
| 2 | Perform Action 2 | Verify Action 2 |
183183

184-
📒 Markdown tables are flexible, but must be constructed correctly to be displayed. For a Markdown table to render, it's important that you place pipes (``|``), dashes (``-``), and spaces in the correct locations. If you want a line break in a step, use ``<br />``. If you want an empty step, put a space between pipes, eg: ``| |``.
184+
🗂️ Markdown tables are flexible, but must be constructed correctly to be displayed. For a Markdown table to render, it's important that you place pipes (``|``), dashes (``-``), and spaces in the correct locations. If you want a line break in a step, use ``<br />``. If you want an empty step, put a space between pipes, eg: ``| |``.
185185

186-
📒 Here's an example of a Case Plan for [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py):
186+
🗂️ Here's an example of a Case Plan for [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py):
187187

188188
``my_first_test.py::MyTestClass::test_swag_labs``
189189
---
@@ -196,15 +196,15 @@ sbase caseplans
196196
| 5 | Click on the ``FINISH`` button. | There is a ``Thank You`` message and a ``Pony Express`` delivery logo. |
197197
| 6 | Log out from the website. | Logout was successful. |
198198

199-
📒 After you've created some Case Plans, you can use the ``Generate Summary of existing Case Plans`` button in the Case Plans GUI to generate the Case Plans Summary file.
199+
🗂️ After you've created some Case Plans, you can use the ``Generate Summary of existing Case Plans`` button in the Case Plans GUI to generate the Case Plans Summary file.
200200

201201
<img src="https://seleniumbase.io/cdn/img/cp/case_plan_summary_gen.png" title="SeleniumBase Case Plans GUI" width="550">
202202

203-
📒 The generated Case Plans summary file, ``case_summary.md``, gets created in the same location where the Case Plans GUI was launched. This is NOT the same location where individual Case Plan boilerplates are generated, which is in the ``case_plans/`` folders. The ``case_plans/`` folders are generated where individual tests live, which means that if you have your tests in multiple folders, then you could also have multiple ``case_plans/`` folders. A ``case_summary.md`` file may look like this when rendered:
203+
🗂️ The generated Case Plans summary file, ``case_summary.md``, gets created in the same location where the Case Plans GUI was launched. This is NOT the same location where individual Case Plan boilerplates are generated, which is in the ``case_plans/`` folders. The ``case_plans/`` folders are generated where individual tests live, which means that if you have your tests in multiple folders, then you could also have multiple ``case_plans/`` folders. A ``case_summary.md`` file may look like this when rendered:
204204

205205
<img src="https://seleniumbase.io/cdn/img/cp/case_plan_summary.png" title="SeleniumBase Case Plans Summary" width="550">
206206

207-
📒 When calling ``sbase caseplans``, you can provide additional arguments to limit the tests that appear in the list. The same discovery rules apply as when using ``pytest``. Eg:
207+
🗂️ When calling ``sbase caseplans``, you can provide additional arguments to limit the tests that appear in the list. The same discovery rules apply as when using ``pytest``. Eg:
208208

209209
```bash
210210
sbase caseplans

help_docs/customizing_test_runs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Here's more info on that, as taken from [pytest-xdist](https://pypi.org/project/
267267
🎛️ You might also want to combine multiple options at once. For example:
268268

269269
```bash
270-
pytest -n=4 --reuse-session --headless -v --dashboard --html=report.html
270+
pytest --headless --rs -n=4 -v --dashboard --html=report.html
271271
```
272272

273273
The above not only runs tests in parallel processes, but it also tells tests in the same process to share the same browser session, runs the tests in headless mode, displays the full name of each test on a separate line, creates a realtime dashboard of the test results, and creates a full report after all tests complete.

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ copyright: Copyright &copy; 2014 - 2022 Michael Mintz
1515
markdown_extensions:
1616
- admonition
1717
- md_in_html
18+
- tables
1819
- toc:
1920
permalink: true
2021
- pymdownx.highlight:
2122
linenums: false
23+
- pymdownx.tabbed:
24+
alternate_style: true
2225
- pymdownx.highlight
2326
- pymdownx.superfences
2427
- pymdownx.inlinehilite

mkdocs_build/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Jinja2==3.1.2
1515
click==8.1.3
1616
zipp==3.8.1
1717
ghp-import==2.1.0
18-
readme-renderer==36.0
18+
readme-renderer==37.0
1919
pymdown-extensions==9.5
2020
importlib-metadata==4.12.0
2121
bleach==5.0.1
@@ -25,7 +25,7 @@ nltk==3.7
2525
tornado==6.2
2626
watchdog==2.1.9
2727
mkdocs==1.3.1
28-
mkdocs-material==8.4.0
28+
mkdocs-material==8.4.1
2929
mkdocs-exclude-search==0.6.4
3030
mkdocs-simple-hooks==0.1.5
3131
mkdocs-material-extensions==1.0.3

0 commit comments

Comments
 (0)