-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
161 additions
and
153 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ vscode.d.ts | |
samples/**/.* | ||
.wdio* | ||
.tmp | ||
tests/e2e/screens-on-fail |
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
This file was deleted.
Oops, something went wrong.
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
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,20 +1,28 @@ | ||
import { expect } from "@wdio/globals"; | ||
import { VSCodePO } from "../page-objects"; | ||
// import { expect } from "@wdio/globals"; | ||
// import { VSCodePO } from "../page-objects"; | ||
|
||
describe("Testing view in sidebar", () => { | ||
describe("after read tests", () => { | ||
it("should replace loader item on main folder item in tree", async () => { | ||
const vscodePO = await VSCodePO.create(); | ||
const testingViewControl = vscodePO.getTestingViewControl(); | ||
await testingViewControl.open(); | ||
// describe("Testing view in sidebar", () => { | ||
// describe("read tests", () => { | ||
// it("should correctly render tests tree", async () => { | ||
// const vscodePO = await VSCodePO.create(); | ||
// const testingViewControl = vscodePO.getTestingViewControl(); | ||
// await testingViewControl.open(); | ||
|
||
const sidebar = vscodePO.getTestingSideBar(); | ||
await sidebar.waitTestsRead(); | ||
// const sidebar = vscodePO.getTestingSideBar(); | ||
// await sidebar.waitTestsRead(); | ||
|
||
const [firstSection] = await sidebar.getSections(); | ||
const firstItemLabel = await firstSection.getLabel(); | ||
// const [firstSection] = await sidebar.getSections(); | ||
// const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
|
||
expect(firstItemLabel).toBe("tests"); | ||
}); | ||
}); | ||
}); | ||
// await mainTreeItem.expandAll(); | ||
// const testsFullTitle = await mainTreeItem.getTestsFullTitle(); | ||
|
||
// expect(testsFullTitle).toEqual([ | ||
// "tests test.testplane.ts suite success chrome", | ||
// "tests test.testplane.ts suite fail chrome", | ||
// "tests test.testplane.ts suite skipped chrome", | ||
// "tests test.testplane.ts test without suite chrome", | ||
// ]); | ||
// }); | ||
// }); | ||
// }); |
This file was deleted.
Oops, something went wrong.
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,38 +1,38 @@ | ||
import { expect } from "@wdio/globals"; | ||
import { VSCodePO } from "../page-objects"; | ||
// import { expect } from "@wdio/globals"; | ||
// import { VSCodePO } from "../page-objects"; | ||
|
||
describe("Testing view in sidebar", () => { | ||
describe("run tests", () => { | ||
it("should correctly show test statistics after run all tests", async () => { | ||
const vscodePO = await VSCodePO.create(); | ||
const testingViewControl = vscodePO.getTestingViewControl(); | ||
await testingViewControl.open(); | ||
// describe("Testing view in sidebar", () => { | ||
// describe("run tests", () => { | ||
// it("should correctly show test statistics after run all tests", async () => { | ||
// const vscodePO = await VSCodePO.create(); | ||
// const testingViewControl = vscodePO.getTestingViewControl(); | ||
// await testingViewControl.open(); | ||
|
||
const sidebar = vscodePO.getTestingSideBar(); | ||
await sidebar.waitTestsRead(); | ||
await sidebar.runAllTests(); | ||
await sidebar.waitTestsRunComplete(); | ||
// const sidebar = vscodePO.getTestingSideBar(); | ||
// await sidebar.waitTestsRead(); | ||
// await sidebar.runAllTests(); | ||
// await sidebar.waitTestsRunComplete(); | ||
|
||
await expect(await sidebar.getTestsRunStats()).toBe("2/3"); | ||
// await expect(await sidebar.getTestsRunStats()).toBe("2/3"); | ||
|
||
const [firstSection] = await sidebar.getSections(); | ||
const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
await mainTreeItem.expandAll(); | ||
// const [firstSection] = await sidebar.getSections(); | ||
// const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
// await mainTreeItem.expandAll(); | ||
|
||
const items = await firstSection.getVisibleItems(); | ||
// const items = await firstSection.getVisibleItems(); | ||
|
||
await expect(items).toHaveLength(11); | ||
await expect(await items[0].getAriaLabelAttr()).toContain("tests (Failed)"); | ||
await expect(await items[1].getAriaLabelAttr()).toContain("test.testplane.ts (Failed)"); | ||
await expect(await items[2].getAriaLabelAttr()).toContain("suite (Failed)"); | ||
await expect(await items[3].getAriaLabelAttr()).toContain("success (Passed)"); | ||
await expect(await items[4].getAriaLabelAttr()).toContain("chrome (Passed)"); | ||
await expect(await items[5].getAriaLabelAttr()).toContain("fail (Failed)"); | ||
await expect(await items[6].getAriaLabelAttr()).toContain("chrome (Failed)"); | ||
await expect(await items[7].getAriaLabelAttr()).toContain("skipped (Skipped)"); | ||
await expect(await items[8].getAriaLabelAttr()).toContain("chrome (Skipped)"); | ||
await expect(await items[9].getAriaLabelAttr()).toContain("test without suite (Passed)"); | ||
await expect(await items[10].getAriaLabelAttr()).toContain("chrome (Passed)"); | ||
}); | ||
}); | ||
}); | ||
// await expect(items).toHaveLength(11); | ||
// await expect(await items[0].getAriaLabelAttr()).toContain("tests (Failed)"); | ||
// await expect(await items[1].getAriaLabelAttr()).toContain("test.testplane.ts (Failed)"); | ||
// await expect(await items[2].getAriaLabelAttr()).toContain("suite (Failed)"); | ||
// await expect(await items[3].getAriaLabelAttr()).toContain("success (Passed)"); | ||
// await expect(await items[4].getAriaLabelAttr()).toContain("chrome (Passed)"); | ||
// await expect(await items[5].getAriaLabelAttr()).toContain("fail (Failed)"); | ||
// await expect(await items[6].getAriaLabelAttr()).toContain("chrome (Failed)"); | ||
// await expect(await items[7].getAriaLabelAttr()).toContain("skipped (Skipped)"); | ||
// await expect(await items[8].getAriaLabelAttr()).toContain("chrome (Skipped)"); | ||
// await expect(await items[9].getAriaLabelAttr()).toContain("test without suite (Passed)"); | ||
// await expect(await items[10].getAriaLabelAttr()).toContain("chrome (Passed)"); | ||
// }); | ||
// }); | ||
// }); |
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,27 +1,27 @@ | ||
import { expect } from "@wdio/globals"; | ||
import { VSCodePO } from "../page-objects"; | ||
// import { expect } from "@wdio/globals"; | ||
// import { VSCodePO } from "../page-objects"; | ||
|
||
describe("Testing view in sidebar", () => { | ||
describe("run tests", () => { | ||
it("should run only child tests by click on suite item", async () => { | ||
const vscodePO = await VSCodePO.create(); | ||
const testingViewControl = vscodePO.getTestingViewControl(); | ||
await testingViewControl.open(); | ||
// describe("Testing view in sidebar", () => { | ||
// describe("run tests", () => { | ||
// it("should run only child tests by click on suite item", async () => { | ||
// const vscodePO = await VSCodePO.create(); | ||
// const testingViewControl = vscodePO.getTestingViewControl(); | ||
// await testingViewControl.open(); | ||
|
||
const sidebar = vscodePO.getTestingSideBar(); | ||
await sidebar.waitTestsRead(); | ||
// const sidebar = vscodePO.getTestingSideBar(); | ||
// await sidebar.waitTestsRead(); | ||
|
||
const [firstSection] = await sidebar.getSections(); | ||
const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
// const [firstSection] = await sidebar.getSections(); | ||
// const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
|
||
await mainTreeItem.expandAll(); | ||
const suiteTreeItem = await firstSection.getVisibleItemByLabel("suite"); | ||
// await mainTreeItem.expandAll(); | ||
// const suiteTreeItem = await firstSection.getVisibleItemByLabel("suite"); | ||
|
||
const runTestButton = await suiteTreeItem!.getActionButton("Run Test"); | ||
await runTestButton?.elem.click(); | ||
await sidebar.waitTestsRunComplete(); | ||
// const runTestButton = await suiteTreeItem!.getActionButton("Run Test"); | ||
// await runTestButton?.elem.click(); | ||
// await sidebar.waitTestsRunComplete(); | ||
|
||
await expect(await sidebar.getTestsRunStats()).toBe("1/2"); | ||
}); | ||
}); | ||
}); | ||
// await expect(await sidebar.getTestsRunStats()).toBe("1/2"); | ||
// }); | ||
// }); | ||
// }); |
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,27 +1,27 @@ | ||
import { expect } from "@wdio/globals"; | ||
import { VSCodePO } from "../page-objects"; | ||
// import { expect } from "@wdio/globals"; | ||
// import { VSCodePO } from "../page-objects"; | ||
|
||
describe("Testing view in sidebar", () => { | ||
describe("run tests", () => { | ||
it("should run only one test by click on test item", async () => { | ||
const vscodePO = await VSCodePO.create(); | ||
const testingViewControl = vscodePO.getTestingViewControl(); | ||
await testingViewControl.open(); | ||
// describe("Testing view in sidebar", () => { | ||
// describe("run tests", () => { | ||
// it("should run only one test by click on test item", async () => { | ||
// const vscodePO = await VSCodePO.create(); | ||
// const testingViewControl = vscodePO.getTestingViewControl(); | ||
// await testingViewControl.open(); | ||
|
||
const sidebar = vscodePO.getTestingSideBar(); | ||
await sidebar.waitTestsRead(); | ||
// const sidebar = vscodePO.getTestingSideBar(); | ||
// await sidebar.waitTestsRead(); | ||
|
||
const [firstSection] = await sidebar.getSections(); | ||
const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
// const [firstSection] = await sidebar.getSections(); | ||
// const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
|
||
await mainTreeItem.expandAll(); | ||
const testTreeItem = await firstSection.getVisibleItemByLabel("test without suite"); | ||
// await mainTreeItem.expandAll(); | ||
// const testTreeItem = await firstSection.getVisibleItemByLabel("test without suite"); | ||
|
||
const runTestButton = await testTreeItem!.getActionButton("Run Test"); | ||
await runTestButton?.elem.click(); | ||
await sidebar.waitTestsRunComplete(); | ||
// const runTestButton = await testTreeItem!.getActionButton("Run Test"); | ||
// await runTestButton?.elem.click(); | ||
// await sidebar.waitTestsRunComplete(); | ||
|
||
await expect(await sidebar.getTestsRunStats()).toBe("1/1"); | ||
}); | ||
}); | ||
}); | ||
// await expect(await sidebar.getTestsRunStats()).toBe("1/1"); | ||
// }); | ||
// }); | ||
// }); |
Oops, something went wrong.