Skip to content

Commit be89ed2

Browse files
author
Matej Lednicky
authored
feat(TU-17542): Update docs on sandbox mode (#664)
Resolves #662
1 parent 8e63fc9 commit be89ed2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If you embed via HTML, you need to pass optinos as attributes with `data-tf-` pr
5454
| open | string | open embed based on user action (see below) | `undefined` |
5555
| openValue | number | based on `open` (see below) | `undefined` |
5656
| preventReopenOnClose | boolean | prevent automatically re-opening the typeform | `false` |
57-
| enableSandbox | boolean | enable [sandbox mode](https://help.typeform.com/hc/en-us/articles/360029295952) (disables submissions and tracking) | `false` |
57+
| enableSandbox | boolean | enable [sandbox mode](https://help.typeform.com/hc/en-us/articles/360029295952) (disables submissions and tracking, the `responseId` in callbacks will have value of `"__sandbox"`) | `false` |
5858
| buttonText | string | customize the button text (sidetab only) | `"Launch me"` |
5959
| customIcon | string | customize the message icon (popover, sidetab) [more info](#custom-icon) | `undefined` |
6060
| tooltip | string | display tooltip text next to the button (popover only) | `undefined` |

packages/embed/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Closing and opening a typeform in modal window will restart the progress from th
138138
| [open](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/load-js) | string | open embed based on user action (see below) | `undefined` |
139139
| [openValue](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/time-js) | number | based on `open` (see below) | `undefined` |
140140
| [preventReopenOnClose](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/prevent-reopen-on-close-html) | boolean | prevent automatically re-opening the typeform | `false` |
141-
| [enableSandbox](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/widget-sandbox) | boolean | enable [sandbox mode](https://help.typeform.com/hc/en-us/articles/360029295952) (disables submissions and tracking) | `false` |
141+
| [enableSandbox](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/widget-sandbox) | boolean | enable [sandbox mode](https://help.typeform.com/hc/en-us/articles/360029295952) (disables submissions and tracking, the `responseId` in callbacks will have value of `"__sandbox"`) | `false` |
142142
| [buttonText](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/sidetab-js) | string | customize the button text (sidetab only) | `"Launch me"` |
143143
| [buttonColor](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/sidetab-customized-html) | string | customize the button background color (sidetab only) | `#3a7685` |
144144
| [buttonTextColor](https://codesandbox.io/s/github/Typeform/embed-demo/tree/main/demo-html/sidetab-customized-html) | string | customize the button text color (sidetab only) | `white` or `black` (based on background color) |

packages/embed/e2e/spec/functional/widget.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ function testMobile(path: string, title: string) {
5555
it('should reset the form when closing it', () => {
5656
cy.get('iframe').then(($iframe) => {
5757
const $body = $iframe.contents().find('body')
58-
cy.wrap($body).find('[data-qa="start-button"]').click()
58+
cy.wrap($body).find('[data-qa="ok-button"]').click()
5959
cy.get('.tf-v1-widget-close').click()
6060
})
6161
cy.wait(1000)
6262
cy.get('iframe').then(($iframe) => {
6363
const $body = $iframe.contents().find('body')
64-
cy.wrap($body).find('[data-qa="start-button"]').should('exist')
64+
cy.wrap($body).find('[data-qa="ok-button"]').should('exist')
6565
})
6666
})
6767
})

packages/embed/e2e/spec/visual/widget.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('Embed Widget', () => {
2020
it('Basic Embed Widget - Mobile fullscreen view', () => {
2121
cy.get('iframe').then(($iframe) => {
2222
const $body = $iframe.contents().find('body')
23-
cy.wrap($body).find('[data-qa="start-button"]').click()
23+
cy.wrap($body).find('[data-qa="ok-button"]').click()
2424
})
2525
cy.wait(1000)
2626
cy.vrt('Basic Embed Widget - Mobile fullscreen view')

0 commit comments

Comments
 (0)