Oliver Foster
Oliver Foster
This is not a framework issue. Transfering to the AAT repo. The registry server is working correctly http://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-vanilla https://adapt-bower-repository.herokuapp.com/packages/search/adapt-contrib-bookmarking The issue is probably something to do with the configuration of...
> Looks slick 👍 @oliverfoster just remind me what was the reason for not using `newer:` on `required` files? Ensuring that the `@@` string replacement directives for the `replace` task...
```js function testQuestionButtons(buttonsObject = {btn__action: 'Submit', btn__feedback: 'Show feedback'}) { Object.keys(buttonsObject).forEach((key) => { cy.get(`.${key}`).should('contain', buttonsObject[key]) }) } ``` This is much more generic than it looks: ```js function hashContains(hash) {...
There are 1001 ways of doing the stripHtml function: ```js function stripHtml(text) { const textWithoutHtml = text.replace(/]*>/g, ''); cy.wrap(textWithoutHtml).as('text'); } ``` As you can see here: https://stackoverflow.com/questions/822452/strip-html-tags-from-text-using-plain-javascript What are you...
It's not really a helper at all it's a very specific externalised feature test. Helpers are more like stripHtml above, they're generic repeatable utilities or standardised logic and usually not...
If you want to externalise a test and reuse it across plugins, we don't have a mechanism for doing that, you'd have to repeat the 5 lines of code in...
> I'm going to use it for stripping the html. On that link currently its the 2nd bit of code, it was just the simplest design which I chose. I...
> I find it confusing that sometimes we're in favour of making what is to be tested clear... but not other times. Can you give the line references and examples...
> Creating the same object for at least 5 different tests doesn't make any sense to me as we should want to reduce repeated code as much as possible. I...
https://github.com/npm/json-parse-even-better-errors ?