# code-block-pro/1.1.0/cypress/support/helpers.js

Code Block Pro – Beautiful Syntax Highlighting, version 1.1.0. 7 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.1.0/code/cypress/support/helpers.js
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.1.0/raw/cypress/support/helpers.js
- Modified: 2022-08-22T22:25:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.1.0/code/cypress/support/helpers.js#L10-L20`.

```javascript
// This will let you set the text of an imput
// with get('.foo').text('bar')
Cypress.Commands.add('text', { prevSubject: true }, (subject, text) => {
    subject.val(text);
    return cy.wrap(subject);
});

```
