Skip to content

feat: modernize scripted and browser examples#1458

Merged
VikaCep merged 4 commits into
mainfrom
1086-explicit-fail-on-examples
Nov 14, 2025
Merged

feat: modernize scripted and browser examples#1458
VikaCep merged 4 commits into
mainfrom
1086-explicit-fail-on-examples

Conversation

@VikaCep

@VikaCep VikaCep commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

Closes #1086

image

using expect() instead of check() + fail()
@VikaCep VikaCep self-assigned this Nov 12, 2025
@github-actions github-actions Bot added the feature A feature added to the application. label Nov 12, 2025
@github-actions

github-actions Bot commented Nov 12, 2025

Copy link
Copy Markdown

Script size changes

Name +/- Main This PR Outcome
[502.js] = 1,736.41 kB 1,736.41 kB
[832.js] -0.13% 959.99 kB 958.73 kB
[datasource/module.js] = 24.49 kB 24.49 kB
[692.js] = 20.19 kB 20.19 kB
[663.js] = 5.84 kB 5.84 kB
[module.js] = 4.92 kB 4.92 kB

Totals

Name +/- Main This PR Outcome
[Scripts] -0.05% 2,751.85 kB 2,750.58 kB
[Non-script Assets] = 2,655.26 kB 2,655.26 kB
[All] -0.02% 5,407.11 kB 5,405.85 kB

Generated by 🚫 dangerJS against 2026452

@VikaCep VikaCep requested a review from ckbedwell November 13, 2025 14:10
@VikaCep VikaCep marked this pull request as ready for review November 13, 2025 14:10
@VikaCep VikaCep requested a review from a team as a code owner November 13, 2025 14:10

@ckbedwell ckbedwell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few updates :)

We also have to give consideration to what we give up when we encourage people to use assertions rather than checks...

Comment thread src/components/BrowserExamplesMenu/snippets/fillform.js Outdated
Comment thread src/components/BrowserExamplesMenu/snippets/keyboard.js Outdated
Comment thread src/components/BrowserExamplesMenu/snippets/querying.js
Comment thread src/components/BrowserExamplesMenu/snippets/querying.js
Comment thread src/components/ScriptExamplesMenu/snippets/extract_token_csrf.js Outdated
Comment thread src/components/ScriptExamplesMenu/snippets/extract_token_csrf.js
Comment thread src/components/ScriptExamplesMenu/snippets/extract_token_csrf.js Outdated
@VikaCep VikaCep requested a review from ckbedwell November 13, 2025 21:40
@VikaCep

VikaCep commented Nov 14, 2025

Copy link
Copy Markdown
Contributor Author

Addressed the review comments 👍

@ckbedwell ckbedwell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@VikaCep VikaCep merged commit 9856678 into main Nov 14, 2025
25 checks passed
@VikaCep VikaCep deleted the 1086-explicit-fail-on-examples branch November 14, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A feature added to the application.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update scripted and browser examples to include explicit fail method

2 participants