Skip to content

Commit e8f6262

Browse files
committed
Bump cypress
1 parent 417dc79 commit e8f6262

19 files changed

Lines changed: 119 additions & 195 deletions

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"private": true,
33
"packageManager": "pnpm@7.26.3",
44
"scripts": {
5-
"dev": "turbo run dev --no-cache --continue",
5+
"dev": "turbo run dev --filter=react-use-intercom --filter=playground --no-cache --continue",
66
"dev:playground": "turbo run dev --parallel --filter=playground",
7+
"dev:examples": "turbo run dev --parallel --filter=*-example --filter=react-use-intercom",
78
"test": "turbo run test",
89
"build": "turbo run build",
910
"build:playground": "turbo run build --filter=playground",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:5173/#/',
6+
supportFile: 'cypress/support/index.ts',
7+
video: false,
8+
specPattern: 'cypress/e2e/**/*.ts',
9+
},
10+
});

packages/react-use-intercom/cypress.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/// <reference types="cypress" />
2+
3+
describe('initialize delay', () => {
4+
it('should not load script on initial load with initialize delay', () => {
5+
cy.visit('/useIntercomWithTimeout');
6+
7+
cy.document() //Important, because Cypress has its own Head
8+
.get('head script')
9+
.contains('[src=https://widget.intercom.io/widget/jcabc7e3]')
10+
.should('not.exist');
11+
12+
cy.wait(5000);
13+
14+
cy.document() //Important, because Cypress has its own Head
15+
.get('head script')
16+
.should('have.attr', 'src')
17+
.should('include', 'https://widget.intercom.io/widget/jcabc7e3');
18+
});
19+
});

packages/react-use-intercom/cypress/integration/mappers.ts renamed to packages/react-use-intercom/cypress/e2e/mappers.ts

File renamed without changes.

packages/react-use-intercom/cypress/integration/provider.ts renamed to packages/react-use-intercom/cypress/e2e/provider.ts

File renamed without changes.

packages/react-use-intercom/cypress/integration/show.ts renamed to packages/react-use-intercom/cypress/e2e/show.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference types="cypress" />
1+
/// <reference path="../support/index.d.ts" />
22

33
describe('show', () => {
44
it('should show when calling `show`', () => {

packages/react-use-intercom/cypress/integration/shutdown.ts renamed to packages/react-use-intercom/cypress/e2e/shutdown.ts

File renamed without changes.

0 commit comments

Comments
 (0)