Fixing ids for selenium (#5874)

This commit is contained in:
Corey Hulen
2017-03-24 19:28:35 -07:00
committed by GitHub
parent 9cfa733178
commit 7460302dec

View File

@@ -36,7 +36,7 @@ export function createSafeId(str) {
return null;
}
return str.replace(' ', '_');
return str.replace(new RegExp(' ', 'g'), '_');
}
export function cmdOrCtrlPressed(e) {