mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-09 12:36:42 +00:00
* Temporarily re-enable key based auth for Mongo and Cassandra tests. * Increase number of shards for playwright tests. * Another small bump to test shard count. * click global new... button then collection in playwright tests * get new table button * create and delete container for every individual scale test * for scale and settings, dont create sample data in container * run scale tests serially * refactor scale setup and tear down to be within each test * record network traces * record network calls on all retries * when disposing of database during playwright test, refresh tree to remove deleted database * refresh tree before opening scale and settings * When opening scale and settings, refresh databases * reload all databases before loading offers * increase time for change partition key request * increase time for change partition key request * refresh databases in test instead of product code * when refreshing containers, open console window to check for status completion * close notification console window after seeing desired log * create and delete a container for each individual test * dont delete database after every test. leave it to the CI * Don't refresh databases when opening Scale+Settings and only delete database if running locally * only open scale and settings at the beginning of each test suite * get it back to working * change settings.spect.ts from serial to parallel * don't delete database after each test * update container creation throughpout to be 5000 * run tests with no throughput limit on the account * adjust scale test to reflect no throughput limit on account * remove test container throughput * don't refresh collections when clicking settings in product code * refactor and run cleanup during pr check * copy cleanup accounts * run cleanup after playwright tests * run cleanup every three hours * revert ci.yml * update cpk test * remove cpk * remove cleanup accounts and add cpk * add cpk * remove cpk changes * revert ci.yml * run cleanup every two hours --------- Co-authored-by: Jade Welton <jawelton@microsoft.com> Co-authored-by: Asier Isayas <aisayas@microsoft.com>
96 lines
2.5 KiB
TypeScript
96 lines
2.5 KiB
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
/**
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
*/
|
|
export default defineConfig({
|
|
testDir: "test",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 3 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: process.env.CI ? "blob" : "html",
|
|
timeout: 10 * 60 * 1000,
|
|
use: {
|
|
trace: "retain-on-failure",
|
|
video: "retain-on-failure",
|
|
screenshot: "on",
|
|
testIdAttribute: "data-test",
|
|
contextOptions: {
|
|
ignoreHTTPSErrors: true,
|
|
},
|
|
},
|
|
|
|
expect: {
|
|
// Many of our expectations take a little longer than the default 5 seconds.
|
|
timeout: 15 * 1000,
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
launchOptions: {
|
|
args: ["--disable-web-security", "--disable-features=IsolateOrigins,site-per-process"],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "firefox",
|
|
use: {
|
|
...devices["Desktop Firefox"],
|
|
launchOptions: {
|
|
firefoxUserPrefs: {
|
|
"security.fileuri.strict_origin_policy": false,
|
|
"network.http.referer.XOriginPolicy": 0,
|
|
"network.http.referer.trimmingPolicy": 0,
|
|
"privacy.file_unique_origin": false,
|
|
"security.csp.enable": false,
|
|
"network.cors_preflight.allow_client_cert": true,
|
|
"dom.security.https_first": false,
|
|
"network.http.cross-origin-embedder-policy": false,
|
|
"network.http.cross-origin-opener-policy": false,
|
|
"browser.tabs.remote.useCrossOriginPolicy": false,
|
|
"browser.tabs.remote.useCORP": false,
|
|
},
|
|
args: ["--disable-web-security"],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "webkit",
|
|
use: {
|
|
...devices["Desktop Safari"],
|
|
},
|
|
},
|
|
{
|
|
name: "Google Chrome",
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
channel: "chrome",
|
|
launchOptions: {
|
|
args: ["--disable-web-security", "--disable-features=IsolateOrigins,site-per-process"],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Microsoft Edge",
|
|
use: {
|
|
...devices["Desktop Edge"],
|
|
channel: "msedge",
|
|
launchOptions: {
|
|
args: ["--disable-web-security", "--disable-features=IsolateOrigins,site-per-process"],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
|
|
webServer: {
|
|
command: "npm run start",
|
|
url: "https://127.0.0.1:1234/_ready",
|
|
timeout: 120 * 1000,
|
|
ignoreHTTPSErrors: true,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
});
|