Skip to content

Commit 1a8121c

Browse files
committed
gh-1269: Added e2e test cases to verify nested folder names
1 parent 396d7b5 commit 1a8121c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tasks/e2e.sh

+26
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,31 @@ cd test-app-fork
230230
# Check corresponding scripts version is installed.
231231
test -e node_modules/react-scripts-fork
232232

233+
# ******************************************************************************
234+
# Test nested folder path as the project name
235+
# ******************************************************************************
236+
237+
#Testing a path that exists
238+
cd $temp_app_path
239+
mkdir test-app-nested-paths-t1
240+
cd test-app-nested-paths-t1
241+
mkdir -p test-app-nested-paths-t1/aa/bb/cc/dd
242+
create_react_app test-app-nested-paths-t1/aa/bb/cc/dd
243+
cd test-app-nested-paths-t1/aa/bb/cc/dd
244+
npm start -- --smoke-test
245+
246+
#Testing a path that does not exist
247+
cd $temp_app_path
248+
create_react_app test-app-nested-paths-t2/aa/bb/cc/dd
249+
cd test-app-nested-paths-t2/aa/bb/cc/dd
250+
npm start -- --smoke-test
251+
252+
#Testing a path that is half exists
253+
cd $temp_app_path
254+
mkdir -p test-app-nested-paths-t3/aa
255+
create_react_app test-app-nested-paths-t3/aa/bb/cc/dd
256+
cd test-app-nested-paths-t3/aa/bb/cc/dd
257+
npm start -- --smoke-test
258+
233259
# Cleanup
234260
cleanup

0 commit comments

Comments
 (0)