Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmiddleton committed Sep 25, 2024
1 parent ea5b5c4 commit 99493aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/manual/testing-policy.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ JavaScript is a dynamic language, and as such, it is difficult to test. There i
Therefore, where possible, we should aim to test JavaScript using the same tools we already use, such as Capybara. This will provide us with a commonality across our test suite and also allow us familiar tools in a more obvious way. For instance:

Jasmine:

```javascript
$("#someButtonId").trigger("click");
expect('click').toHaveBeenTriggeredOn('#someButtonId');
Expand All @@ -83,6 +84,7 @@ expect(menu).toBe('menu-visible');
```

vs Capybara:

```ruby
click_on('Menu')
expect(find("#menu").visible?).to be true
Expand Down

0 comments on commit 99493aa

Please sign in to comment.