Skip to content

Commit d2726b9

Browse files
committed
Update a presentation generator
1 parent 8fde20a commit d2726b9

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

examples/presenter/core_presentation.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ class MyChartMakerClass(BaseCase):
55

66
def test_seleniumbase_chart(self):
77
self.create_presentation(theme="league", transition="slide")
8-
self.create_pie_chart(title="There are 4 core areas of SeleniumBase:")
9-
self.add_data_point("Basic API (Test methods/functions)", 1)
10-
self.add_data_point("Command-line Options (pytest Options)", 1)
8+
self.create_pie_chart(title="The 4 core areas of SeleniumBase:")
9+
self.add_data_point("Basic API (test methods)", 1)
10+
self.add_data_point("Command-line options (pytest options)", 1)
1111
self.add_data_point("The Console Scripts interface", 1)
1212
self.add_data_point("Advanced API (Tours, Charts, & Presentations)", 1)
1313
self.add_slide("<p>SeleniumBase core areas</p>" + self.extract_chart())
1414
self.add_slide(
15-
"<p>Basic API (Test methods/functions) Example</p>",
15+
"<p>Basic API (test methods). Example test:</p>",
1616
code=(
1717
'from seleniumbase import BaseCase\n\n'
1818
'class MyTestClass(BaseCase):\n\n'
@@ -27,20 +27,23 @@ def test_seleniumbase_chart(self):
2727
' self.click_link_text("comic #249")\n'
2828
' self.assert_element(\'img[alt*="Chess"]\')\n'))
2929
self.add_slide(
30-
"<p>Command-line Options Example</p>",
30+
"<p>Command-line options. Examples:</p>",
3131
code=(
3232
'$ pytest my_first_test.py\n'
3333
'$ pytest test_swag_labs.py --mobile\n'
3434
'$ pytest edge_test.py --browser=edge\n'
3535
'$ pytest basic_test.py --headless\n'
36-
'$ pytest my_first_test.py --demo\n'
36+
'$ pytest my_first_test.py --demo --guest\n'
3737
'$ pytest basic_test.py --slow\n'
3838
'$ pytest -v -m marker2 --headless --save-screenshot\n'
39-
'$ pytest test_suite.py --reuse-session --html=report.html\n'
40-
'$ pytest basic_test.py --incognito\n'
41-
'$ pytest parameterized_test.py --guest --reuse-session\n'))
39+
'$ pytest parameterized_test.py --reuse-session\n'
40+
'$ pytest test_suite.py --html=report.html --rs\n'
41+
'$ pytest test_suite.py --dashboard --html=report.html\n'
42+
'$ pytest github_test.py --demo --disable-csp\n'
43+
'$ pytest test_suite.py -n=2 --rs --crumbs\n'
44+
'$ pytest basic_test.py --incognito\n'))
4245
self.add_slide(
43-
"<p>Console scripts interface Example</p>",
46+
"<p>The Console Scripts interface. Examples:</p>",
4447
code=(
4548
'$ sbase install chromedriver\n'
4649
'$ sbase install chromedriver latest\n'
@@ -57,7 +60,7 @@ def test_seleniumbase_chart(self):
5760
'$ sbase grid-hub stop\n'
5861
'$ sbase options\n'))
5962
self.add_slide(
60-
'<p>Advanced API (creating a presentation) Example</p>',
63+
'<p>Advanced API. "Presenter" example:</p>',
6164
code=(
6265
'from seleniumbase import BaseCase\n\n'
6366
'class MyPresenterClass(BaseCase):\n\n'

0 commit comments

Comments
 (0)