chore: rename playwrite to playwright (#1203)

I assume this was a mistake and not intentional.
This commit is contained in:
Brian Donovan authored and GitHub committed 2023-07-17 11:00:59 -05:00
1 parent 9cef71b6b9
commit 947b7b650e
14 files changed
+30 -28

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ on:
- lib.rs - lib.rs
- Cargo.toml - Cargo.toml
- Makefile.toml - Makefile.toml
- playwrite-tests/** - playwright-tests/**
pull_request: pull_request:
types: [opened, synchronize, reopened, ready_for_review] types: [opened, synchronize, reopened, ready_for_review]
+2 -2
View File
@@ -1,6 +1,6 @@
/target /target
/playwrite-tests/web/dist /playwright-tests/web/dist
/playwrite-tests/fullstack/dist /playwright-tests/fullstack/dist
/dist /dist
Cargo.lock Cargo.lock
.DS_Store .DS_Store
+4 -4
View File
@@ -35,10 +35,10 @@ members = [
# Full project examples # Full project examples
"examples/tailwind", "examples/tailwind",
"examples/PWA-example", "examples/PWA-example",
# Playwrite tests # Playwright tests
"playwrite-tests/liveview", "playwright-tests/liveview",
"playwrite-tests/web", "playwright-tests/web",
"playwrite-tests/fullstack", "playwright-tests/fullstack",
] ]
exclude = ["examples/mobile_demo"] exclude = ["examples/mobile_demo"]
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
[package] [package]
name = "dioxus-playwrite-fullstack-test" name = "dioxus-playwright-fullstack-test"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
publish = false publish = false
@@ -1,4 +1,4 @@
// This test is used by playwrite configured in the root of the repo // This test is used by playwright configured in the root of the repo
// Tests: // Tests:
// - Server functions // - Server functions
// - SSR // - SSR
File renamed without changes.
@@ -1,8 +1,8 @@
[package] [package]
name = "dioxus-playwrite-liveview-test" name = "dioxus-playwright-liveview-test"
version = "0.0.1" version = "0.0.1"
edition = "2021" edition = "2021"
description = "Playwrite test for Dioxus Liveview" description = "Playwright test for Dioxus Liveview"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
publish = false publish = false
@@ -1,4 +1,4 @@
// This test is used by playwrite configured in the root of the repo // This test is used by playwright configured in the root of the repo
use axum::{extract::ws::WebSocketUpgrade, response::Html, routing::get, Router}; use axum::{extract::ws::WebSocketUpgrade, response::Html, routing::get, Router};
use dioxus::prelude::*; use dioxus::prelude::*;
File renamed without changes.
@@ -1,8 +1,8 @@
[package] [package]
name = "dioxus-playwrite-web-test" name = "dioxus-playwright-web-test"
version = "0.0.1" version = "0.0.1"
edition = "2021" edition = "2021"
description = "Playwrite test for Dioxus Web" description = "Playwright test for Dioxus Web"
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
publish = false publish = false
@@ -1,4 +1,4 @@
// This test is used by playwrite configured in the root of the repo // This test is used by playwright configured in the root of the repo
use dioxus::prelude::*; use dioxus::prelude::*;
use dioxus_web::use_eval; use dioxus_web::use_eval;
+15 -13
View File
@@ -1,6 +1,6 @@
// @ts-check // @ts-check
const { defineConfig, devices } = require('@playwright/test'); const { defineConfig, devices } = require("@playwright/test");
const path = require('path'); const path = require("path");
/** /**
* Read environment variables from file. * Read environment variables from file.
@@ -12,7 +12,7 @@ const path = require('path');
* @see https://playwright.dev/docs/test-configuration * @see https://playwright.dev/docs/test-configuration
*/ */
module.exports = defineConfig({ module.exports = defineConfig({
testDir: './playwrite-tests', testDir: "./playwright-tests",
/* Run tests in files in parallel */ /* Run tests in files in parallel */
fullyParallel: true, fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */ /* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -22,21 +22,21 @@ module.exports = defineConfig({
/* Opt out of parallel tests on CI. */ /* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined, workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html', reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: { use: {
/* Base URL to use in actions like `await page.goto('/')`. */ /* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000', // baseURL: 'http://127.0.0.1:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry', trace: "on-first-retry",
}, },
/* Configure projects for major browsers */ /* Configure projects for major browsers */
projects: [ projects: [
{ {
name: 'chromium', name: "chromium",
use: { ...devices['Desktop Chrome'] }, use: { ...devices["Desktop Chrome"] },
}, },
// { // {
@@ -73,27 +73,29 @@ module.exports = defineConfig({
/* Run your local dev server before starting the tests */ /* Run your local dev server before starting the tests */
webServer: [ webServer: [
{ {
command: 'cargo run --package dioxus-playwrite-liveview-test --bin dioxus-playwrite-liveview-test', command:
"cargo run --package dioxus-playwright-liveview-test --bin dioxus-playwright-liveview-test",
port: 3030, port: 3030,
timeout: 10 * 60 * 1000, timeout: 10 * 60 * 1000,
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
stdout: "pipe", stdout: "pipe",
}, },
{ {
cwd: path.join(process.cwd(), 'playwrite-tests', 'web'), cwd: path.join(process.cwd(), "playwright-tests", "web"),
command: 'dioxus serve', command: "dioxus serve",
port: 8080, port: 8080,
timeout: 10 * 60 * 1000, timeout: 10 * 60 * 1000,
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
stdout: "pipe", stdout: "pipe",
}, },
{ {
cwd: path.join(process.cwd(), 'playwrite-tests', 'fullstack'), cwd: path.join(process.cwd(), "playwright-tests", "fullstack"),
command: 'dioxus build --features web\ncargo run --release --features ssr --no-default-features', command:
"dioxus build --features web\ncargo run --release --features ssr --no-default-features",
port: 3333, port: 3333,
timeout: 10 * 60 * 1000, timeout: 10 * 60 * 1000,
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
stdout: "pipe", stdout: "pipe",
} },
], ],
}); });