Generalize smoke text

This commit is contained in:
Jackson Kearl 2021-05-20 22:21:19 -07:00
parent 89c8f91988
commit e66c62f38a
No known key found for this signature in database
GPG key ID: DA09A59C409FC400

View file

@ -19,7 +19,7 @@ export function setup() {
it('has a tooltp with a keybinding', async function () {
const app = this.app as Application;
const tooltip: string = await app.workbench.search.getSearchTooltip();
if (!/Search \([^F]+F\)/.test(tooltip)) {
if (!/Search \(.+\)/.test(tooltip)) {
throw Error(`Expected search tooltip to contain keybinding but got ${tooltip}`);
}
});