Fix ui-test xpath selector

This commit is contained in:
Thomas Nordquist
2019-02-17 23:13:04 +01:00
parent 9207af0aaa
commit 6c25b42a94

View File

@@ -24,6 +24,6 @@ async function topicMatches(topics: string[], browser: Browser<void>) {
} }
function topicSelector(topics: string[]) { function topicSelector(topics: string[]) {
const suffix = topics.map(topic => `*[contains(text(), "${topic}")]`).join('/../../..//') const suffix = topics.map(topic => `*[contains(text(), "${topic}")]`).join('/../..//')
return `//${suffix}` return `//${suffix}`
} }