Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahlessner committed Sep 24, 2024
1 parent 2a49efc commit 29e52e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apps/salesforce-commerce-cloud/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/salesforce-commerce-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@emotion/react": "^11.13.3",
"@tanstack/react-query": "^4.29.7",
"@vitejs/plugin-react": "^4.3.1",
"axios": "^1.4.0",
"axios": "^1.7.7",
"commerce-sdk": "^2.10.1",
"contentful-management": "10.7.0",
"react": "17.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ vi.mock('@contentful/react-apps-toolkit', () => ({

describe('Config Screen component', () => {
it('Component text exists', async () => {
const { getByText } = render(<ConfigScreen />);
const { findByText } = render(<ConfigScreen />);

// simulate the user clicking the install button
await mockSdk.app.onConfigure.mock.calls[0][0]();

expect(getByText('Welcome to your contentful app. This is your config page.')).toBeTruthy();
expect(findByText(/Welcome to your contentful app. This is your config page./)).toBeTruthy();
});
});

0 comments on commit 29e52e9

Please sign in to comment.