This fixes #59 by recording the initial number of tabs opened and waiting until the number of tabs equals the initial number or the initial number + 1. This is more general behaviour which checked only for equality with 1, which meant that if a profile opened tab by default, or if an extension did so, there would be a timeout error.
I tested on the following case:
A "blank" profile that has a single tab and keeps a single tab (default expected behaviour)
A profile with an extension that opens a second tab as newtab (so initial number is 2)
A profile with a pinned tab that opens automatically (so that initial number is 2, or 3 if an extension opens a new tab)
This fixes #59 by recording the initial number of tabs opened and waiting until the number of tabs equals the initial number or the initial number + 1. This is more general behaviour which checked only for equality with 1, which meant that if a profile opened tab by default, or if an extension did so, there would be a timeout error.
I tested on the following case:
EDIT: Added cases I tested.