chore: added some more simple stuff for e2e tests with cypress
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import cypress from 'cypress';
|
||||
import config from '../cypress.json';
|
||||
import path from 'path';
|
||||
|
||||
export async function run({ watch }: { watch: boolean }) {
|
||||
const command = watch ? cypress.open : cypress.run;
|
||||
@@ -24,7 +24,12 @@ export async function run({ watch }: { watch: boolean }) {
|
||||
browser: 'chrome',
|
||||
config: {
|
||||
watchForFileChanges: watch,
|
||||
baseUrl: process.env.BACKSTAGE_TEST_URL ?? 'http://localhost:7000',
|
||||
integrationFolder: path.resolve(__dirname, '../cypress/integration'),
|
||||
supportFile: path.resolve(__dirname, '../cypress/support'),
|
||||
fixturesFolder: path.resolve(__dirname, '../cypress/fixtures'),
|
||||
pluginsFile: path.resolve(__dirname, '../cypress/plugins'),
|
||||
defaultCommandTimeout: 10000,
|
||||
},
|
||||
configFile: `${__dirname}/../cypress.json`,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2021 Spotify AB
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user