Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: turn e2e tests back on with fixes#5719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
presleyp merged 7 commits intomainfrome2e-timeout
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion.github/workflows/coder.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -617,7 +617,7 @@ jobs:
name: "test/e2e/${{ matrix.os }}"
needs:
- changes
if:false #needs.changes.outputs.docs-only == 'false'
if: needs.changes.outputs.docs-only == 'false'
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
Expand Down
21 changes: 14 additions & 7 deletionssite/e2e/tests/basicFlow.spec.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
import { test } from "@playwright/test"
import { test, expect } from "@playwright/test"
import { email, password } from "../constants"
import { SignInPage } from "../pom"
import { clickButton, buttons, fillInput } from "../helpers"
import dayjs from "dayjs"

test("Basic flow", async ({ baseURL, page }) => {
// We're keeping entire flows in one test, which means the test needs extra time.
test.setTimeout(120000)
test.setTimeout(5 * 60 * 1000)
await page.goto(baseURL + "/", { waitUntil: "networkidle" })

// Log-in with the default credentials we set up in the development server
const signInPage = new SignInPage(baseURL, page)
await signInPage.submitBuiltInAuthentication(email, password)

// create Docker template
await page.waitForSelector("text=Templates")
await page.click("text=Templates")

await clickButton(page, buttons.starterTemplates)
Expand All@@ -27,15 +27,22 @@ test("Basic flow", async ({ baseURL, page }) => {
// create workspace
await clickButton(page, buttons.createWorkspace)

await fillInput(page, "Workspace Name", "my-workspace")
// give workspace a unique name to avoid failure
await fillInput(
page,
"Workspace Name",
`workspace-${dayjs().format("MM-DD-hh-mm-ss")}`,
)
await clickButton(page, buttons.submitCreateWorkspace)

// stop workspace
await page.waitForSelector("text=Started")
await clickButton(page, buttons.stopWorkspace)

// start workspace
await page.waitForSelector("text=Stopped")
await clickButton(page, buttons.startWorkspace)
await page.waitForSelector("text=Started")
const stopButton = page.getByRole("button", {
name: buttons.stopWorkspace,
exact: true,
})
await expect(stopButton).toBeEnabled({ timeout: 60_000 })
})

[8]ページ先頭

©2009-2025 Movatter.jp