Skip to content

Commit

Permalink
test: update div list label for sample gallery (#10181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellyzh authored Oct 20, 2023
1 parent 52a85a4 commit 9dac42e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/tests/src/ui-test/treeview/treeviewContext.ts
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";
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit 9dac42e

Please sign in to comment.