Skip to content

Commit

Permalink
Fix missing TEST_CONST import in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Jun 26, 2024
1 parent 98e6956 commit 2a123cb
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion WebExample/__tests__/input.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {test, expect} from '@playwright/test';
import * as TEST_CONST from './testConstants';
import * as TEST_CONST from '../../example/src/testConstants';
import {checkCursorPosition, setupInput} from './utils';

test.beforeEach(async ({page}) => {
Expand Down
2 changes: 1 addition & 1 deletion WebExample/__tests__/styles.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {test, expect} from '@playwright/test';
import type {Page} from '@playwright/test';
import * as TEST_CONST from './testConstants';
import * as TEST_CONST from '../../example/src/testConstants';
import {setupInput, getElementStyle} from './utils';

const testMarkdownContentStyle = async ({testContent, style, page}: {testContent: string; style: string; page: Page}) => {
Expand Down
2 changes: 1 addition & 1 deletion WebExample/__tests__/textManipulation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {test, expect} from '@playwright/test';
import type {Locator, Page} from '@playwright/test';
import * as TEST_CONST from './testConstants';
import * as TEST_CONST from '../../example/src/testConstants';
import {checkCursorPosition, setupInput, getElementStyle, pressCmd} from './utils';

const pasteContent = async ({text, page, inputLocator}: {text: string; page: Page; inputLocator: Locator}) => {
Expand Down
2 changes: 1 addition & 1 deletion WebExample/__tests__/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Locator, Page} from '@playwright/test';
import * as TEST_CONST from './testConstants';
import * as TEST_CONST from '../../example/src/testConstants';

const setupInput = async (page: Page, action?: 'clear' | 'reset') => {
const inputLocator = await page.locator(`div#${TEST_CONST.INPUT_ID}`);
Expand Down
2 changes: 1 addition & 1 deletion WebExample/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {defineConfig, devices} from '@playwright/test';
import * as TEST_CONST from './__tests__/testConstants';
import * as TEST_CONST from '../example/src/testConstants';

export default defineConfig({
testDir: './__tests__',
Expand Down
2 changes: 1 addition & 1 deletion WebExample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"strict": true
},
"include": ["App.tsx", "**/*.ts", "__tests__/testConstants.ts"],
"include": ["App.tsx", "**/*.ts"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Button, Platform, StyleSheet, Text, View} from 'react-native';

import {MarkdownTextInput} from '@expensify/react-native-live-markdown';
import type {TextInput} from 'react-native';
import * as TEST_CONST from '../../WebExample/__tests__/testConstants';
import * as TEST_CONST from './testConstants';

function isWeb() {
return Platform.OS === 'web';
Expand Down
File renamed without changes.

0 comments on commit 2a123cb

Please sign in to comment.