-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update div list label for sample gallery (#10181)
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* @author Helly Zhang <[email protected]> | ||
*/ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
import * as path from "path"; | ||
import * as fs from "fs-extra"; | ||
import { expect } from "chai"; | ||
|
@@ -64,7 +64,9 @@ export async function createSampleProject( | |
let foundSample = false; | ||
console.log("finding sample..."); | ||
const elements = await webView.findWebElements( | ||
By.xpath('//div[@class="sample-gallery"]/div[@class="sample-stack"]/div') | ||
By.xpath( | ||
'//div[@class="sample-gallery"]/div[@class="sample-list"]/div[@class="sample-list-item"]' | ||
) | ||
); | ||
for (const element of elements) { | ||
const sampleItem = await element.findElement(By.css("h3")); | ||
|