-
Notifications
You must be signed in to change notification settings - Fork 925
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
1 parent
02e711e
commit 8128ad3
Showing
7 changed files
with
10,354 additions
and
6,984 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 |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
dist/ | ||
*.scss.d.ts | ||
resources/dist | ||
.vscode-test | ||
.vscode-test | ||
.wdio-vscode-service | ||
logs |
Large diffs are not rendered by default.
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
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,26 @@ | ||
import { browser, expect } from "@wdio/globals"; | ||
import { Workbench } from "wdio-vscode-service"; | ||
|
||
function openFirebaseSidebar() { | ||
return $("a.codicon-mono-firebase").click(); | ||
} | ||
|
||
async function switchToFirebaseSidebarFrame(workbench: Workbench) { | ||
const sidebarView = await workbench.getWebviewByTitle(""); | ||
await browser.switchToFrame(sidebarView.elem); | ||
|
||
const firebaseView = await $('iframe[title="Firebase"]'); | ||
await firebaseView.waitForDisplayed(); | ||
await browser.switchToFrame(firebaseView); | ||
|
||
return firebaseView; | ||
} | ||
|
||
it("Supports opening empty projects", async function () { | ||
const workbench = await browser.getWorkbench(); | ||
|
||
await openFirebaseSidebar(); | ||
await switchToFirebaseSidebarFrame(workbench); | ||
|
||
await expect($("vscode-button=Try a Quickstart!")).toBeDisplayed(); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import type { Options } from "@wdio/types"; | ||
import * as path from "path"; | ||
|
||
export const config: Options.Testrunner = { | ||
runner: "local", | ||
autoCompileOpts: { | ||
autoCompile: true, | ||
tsNodeOpts: { | ||
project: "./tsconfig.test.json", | ||
transpileOnly: true, | ||
}, | ||
}, | ||
|
||
specs: ["./integration/**/*.ts"], | ||
// Patterns to exclude. | ||
exclude: [ | ||
// 'path/to/excluded/files' | ||
], | ||
|
||
// Redirect noisy chromedriver and browser logs to ./logs | ||
outputDir: "./logs", | ||
|
||
capabilities: [ | ||
{ | ||
browserName: "vscode", | ||
browserVersion: "stable", // also possible: "insiders" or a specific version e.g. "1.80.0" | ||
"wdio:vscodeOptions": { | ||
// points to directory where extension package.json is located | ||
extensionPath: path.join(__dirname, "..", ".."), | ||
// optional VS Code settings | ||
userSettings: { | ||
"editor.fontSize": 14, | ||
}, | ||
}, | ||
}, | ||
], | ||
|
||
services: ["vscode"], | ||
framework: "mocha", | ||
reporters: ["spec"], | ||
|
||
mochaOpts: { | ||
ui: "bdd", | ||
timeout: 60000, | ||
}, | ||
}; |