mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Adapt integration test to recent changes
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
8f39e86b15
commit
d743380012
@ -24,8 +24,8 @@ describe("preferences page tests", () => {
|
|||||||
|
|
||||||
await app.evaluate(async ({ app }) => {
|
await app.evaluate(async ({ app }) => {
|
||||||
await app.applicationMenu
|
await app.applicationMenu
|
||||||
.getMenuItemById(process.platform === "darwin" ? "root" : "file")
|
.getMenuItemById(process.platform === "darwin" ? "mac" : "file")
|
||||||
.submenu.getMenuItemById("preferences")
|
.submenu.getMenuItemById("navigate-to-preferences")
|
||||||
.click();
|
.click();
|
||||||
});
|
});
|
||||||
}, 10*60*1000);
|
}, 10*60*1000);
|
||||||
@ -37,7 +37,7 @@ describe("preferences page tests", () => {
|
|||||||
it('shows "preferences" and can navigate through the tabs', async () => {
|
it('shows "preferences" and can navigate through the tabs', async () => {
|
||||||
const pages = [
|
const pages = [
|
||||||
{
|
{
|
||||||
id: "application",
|
id: "app",
|
||||||
header: "Application",
|
header: "Application",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -51,8 +51,8 @@ describe("preferences page tests", () => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
for (const { id, header } of pages) {
|
for (const { id, header } of pages) {
|
||||||
await window.click(`[data-testid=tab-link-for-${id}]`);
|
await window.click(`[data-preference-tab-link-test=${id}]`);
|
||||||
await window.waitForSelector(`[data-testid=${id}-header] >> text=${header}`);
|
await window.waitForSelector(`[data-preference-page-title-test] >> text=${header}`);
|
||||||
}
|
}
|
||||||
}, 10*60*1000);
|
}, 10*60*1000);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user