# Stores pass (S008): the importer reads other browsers' profiles. A fake home (tests/smoke/make-import-home.py) holds the
# old Python Nacre's files, a Chrome and a Firefox profile; Nacre finds all three and imports bookmarks, history, home page
# and search engine, and the old Nacre's passwords. A second import of the old Nacre adds nothing.
# 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 "Old Nacre"
expect /import_sources/1 "Google Chrome"
expect /import_sources/2 "Firefox"
cmd import 0
wait 3
status old
expect /bookmarks 2
expect /bookmark_folders 1
expect /history 1
expect /logins 1
expect /search_engine "kagi"
cmd import 0
wait 3
status old-again
expect /bookmarks 2
expect /history 1
expect /logins 1
page nacre://settings/import
wait 1
shot import-page
cmd import 1
wait 3
status chrome
expect /bookmarks 6
expect /bookmark_folders 3
expect /history 3
expect /home_url "https://home.chrome.example/"
expect /search_engine "bing"
page nacre://bookmarks
wait 1
shot chrome-imported
cmd import 2
wait 3
status firefox
expect /bookmarks 8
expect /history 5
expect /home_url "https://home.firefox.example/"
expect /search_engine "duckduckgo"
status done
quit
