tests: update DuckDuckGo test selectors (#6080)
This commit is contained in:
parent
7b76c3fe77
commit
5bcf4d001f
2 changed files with 10 additions and 7 deletions
1
src/frontend/package-lock.json
generated
1
src/frontend/package-lock.json
generated
|
|
@ -836,7 +836,6 @@
|
||||||
},
|
},
|
||||||
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
|
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"extraneous": true,
|
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,19 @@ test(
|
||||||
await page.getByTestId("sidebar-search-input").click();
|
await page.getByTestId("sidebar-search-input").click();
|
||||||
await page.getByTestId("sidebar-search-input").fill("duck");
|
await page.getByTestId("sidebar-search-input").fill("duck");
|
||||||
|
|
||||||
await page.waitForSelector('//*[@id="toolsDuckDuckGo Search"]', {
|
await page.waitForSelector('[data-testid="toolsDuckDuckGo Search"]', {
|
||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
});
|
});
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator('//*[@id="toolsDuckDuckGo Search"]')
|
.getByTestId("toolsDuckDuckGo Search")
|
||||||
.dragTo(page.locator('//*[@id="react-flow-id"]'));
|
.hover()
|
||||||
await page.mouse.up();
|
.then(async () => {
|
||||||
await page.mouse.down();
|
await page
|
||||||
|
.getByTestId("add-component-button-duckduckgo-search")
|
||||||
|
.click();
|
||||||
|
});
|
||||||
|
|
||||||
await page.getByTestId("fit_view").click();
|
await page.getByTestId("fit_view").click();
|
||||||
|
|
||||||
await page
|
await page
|
||||||
|
|
@ -42,7 +46,7 @@ test(
|
||||||
) ?? false;
|
) ?? false;
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.getByTestId("output-inspection-data-duckduckgosearch")
|
.getByTestId("output-inspection-data-duckduckgosearchcomponent")
|
||||||
.first()
|
.first()
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue