# Stores pass (S008): the importer reads other browsers' profiles. A fake home (tests/smoke/make-import-home.py) holds a
# Chrome and a Firefox profile; Nacre finds both and imports bookmarks, history, home page and search engine.
# Offline.  python3 tests/smoke/make-import-home.py target/smoke/import-home
#           SMOKE_HOME=$PWD/target/smoke/import-home tools/smoke.sh tests/smoke/stores-import.txt <outdir>
wait 3
status found
expect /import_sources/0 "Google Chrome"
expect /import_sources/1 "Firefox"
cmd import 0
wait 3
status chrome
expect /bookmarks 4
expect /bookmark_folders 2
expect /history 2
expect /home_url "https://home.chrome.example/"
expect /search_engine "bing"
page nacre://bookmarks
wait 1
shot chrome-imported
cmd import 1
wait 3
status firefox
expect /bookmarks 6
expect /history 4
expect /home_url "https://home.firefox.example/"
expect /search_engine "duckduckgo"
status done
quit
