deploy: current vibn theia state
Made-with: Cursor
This commit is contained in:
33
examples/playwright/configs/playwright.ci.config.ts
Normal file
33
examples/playwright/configs/playwright.ci.config.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
// *****************************************************************************
|
||||
// Copyright (C) 2022 EclipseSource and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// http://www.eclipse.org/legal/epl-2.0.
|
||||
//
|
||||
// This Source Code may also be made available under the following Secondary
|
||||
// Licenses when the conditions for such availability set forth in the Eclipse
|
||||
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
||||
// with the GNU Classpath Exception which is available at
|
||||
// https://www.gnu.org/software/classpath/license.html.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
// *****************************************************************************
|
||||
|
||||
import { PlaywrightTestConfig } from '@playwright/test';
|
||||
import baseConfig from './playwright.config';
|
||||
|
||||
const ciConfig: PlaywrightTestConfig = {
|
||||
...baseConfig,
|
||||
workers: 1,
|
||||
retries: 2,
|
||||
reporter: [
|
||||
['list'],
|
||||
['github'],
|
||||
['html', { open: 'never' }],
|
||||
],
|
||||
timeout: 30 * 1000, // Overwrite baseConfig timeout
|
||||
preserveOutput: 'always'
|
||||
};
|
||||
|
||||
export default ciConfig;
|
||||
45
examples/playwright/configs/playwright.config.ts
Normal file
45
examples/playwright/configs/playwright.config.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
// *****************************************************************************
|
||||
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// http://www.eclipse.org/legal/epl-2.0.
|
||||
//
|
||||
// This Source Code may also be made available under the following Secondary
|
||||
// Licenses when the conditions for such availability set forth in the Eclipse
|
||||
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
||||
// with the GNU Classpath Exception which is available at
|
||||
// https://www.gnu.org/software/classpath/license.html.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
// *****************************************************************************
|
||||
|
||||
import { PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
testDir: '../lib/tests',
|
||||
testMatch: ['**/*.js'],
|
||||
workers: 1,
|
||||
fullyParallel: false,
|
||||
// Timeout for each test in milliseconds.
|
||||
timeout: 60 * 1000,
|
||||
use: {
|
||||
baseURL: 'http://localhost:3000',
|
||||
browserName: 'chromium',
|
||||
permissions: ['clipboard-read'],
|
||||
screenshot: 'only-on-failure'
|
||||
},
|
||||
preserveOutput: 'failures-only',
|
||||
reporter: [
|
||||
['list'],
|
||||
['allure-playwright']
|
||||
],
|
||||
// Reuse Theia backend on port 3000 or start instance before executing the tests
|
||||
webServer: {
|
||||
command: 'npm run theia:start',
|
||||
port: 3000,
|
||||
reuseExistingServer: true
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
27
examples/playwright/configs/playwright.debug.config.ts
Normal file
27
examples/playwright/configs/playwright.debug.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// *****************************************************************************
|
||||
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// http://www.eclipse.org/legal/epl-2.0.
|
||||
//
|
||||
// This Source Code may also be made available under the following Secondary
|
||||
// Licenses when the conditions for such availability set forth in the Eclipse
|
||||
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
||||
// with the GNU Classpath Exception which is available at
|
||||
// https://www.gnu.org/software/classpath/license.html.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
// *****************************************************************************
|
||||
|
||||
import { PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
import baseConfig from './playwright.config';
|
||||
|
||||
const debugConfig: PlaywrightTestConfig = {
|
||||
...baseConfig,
|
||||
workers: 1,
|
||||
timeout: 15000000
|
||||
};
|
||||
|
||||
export default debugConfig;
|
||||
30
examples/playwright/configs/playwright.headful.config.ts
Normal file
30
examples/playwright/configs/playwright.headful.config.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// *****************************************************************************
|
||||
// Copyright (C) 2021 logi.cals GmbH, EclipseSource and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// http://www.eclipse.org/legal/epl-2.0.
|
||||
//
|
||||
// This Source Code may also be made available under the following Secondary
|
||||
// Licenses when the conditions for such availability set forth in the Eclipse
|
||||
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
||||
// with the GNU Classpath Exception which is available at
|
||||
// https://www.gnu.org/software/classpath/license.html.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
||||
// *****************************************************************************
|
||||
|
||||
import { PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
import baseConfig from './playwright.config';
|
||||
|
||||
const headfulConfig: PlaywrightTestConfig = {
|
||||
...baseConfig,
|
||||
workers: 1,
|
||||
use: {
|
||||
...baseConfig.use,
|
||||
headless: false
|
||||
}
|
||||
};
|
||||
|
||||
export default headfulConfig;
|
||||
7
examples/playwright/configs/ui-tests.eslintrc.json
Normal file
7
examples/playwright/configs/ui-tests.eslintrc.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
// override existing rules for ui-tests package
|
||||
"rules": {
|
||||
"no-undef": "off", // disabled due to 'browser', '$', '$$'
|
||||
"no-unused-expressions": "off"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
// override existing rules for ui-tests playwright package
|
||||
"rules": {
|
||||
"no-null/no-null": "off"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user