use WORKSPACE env var for stack_functional_integration tests, fix navigate path (#71908)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
f0d3cb96a4
commit
7519c1f8c3
|
@ -12,12 +12,16 @@ import { esTestConfig, kbnTestConfig } from '@kbn/test';
|
|||
|
||||
const reportName = 'Stack Functional Integration Tests';
|
||||
const testsFolder = '../test/functional/apps';
|
||||
const stateFilePath = '../../../../../integration-test/qa/envvars.sh';
|
||||
const prepend = (testFile) => require.resolve(`${testsFolder}/${testFile}`);
|
||||
const log = new ToolingLog({
|
||||
level: 'info',
|
||||
writeTo: process.stdout,
|
||||
});
|
||||
log.info(`WORKSPACE in config file ${process.env.WORKSPACE}`);
|
||||
const stateFilePath = process.env.WORKSPACE
|
||||
? `${process.env.WORKSPACE}/qa/envvars.sh`
|
||||
: '../../../../../integration-test/qa/envvars.sh';
|
||||
|
||||
const prepend = (testFile) => require.resolve(`${testsFolder}/${testFile}`);
|
||||
|
||||
export default async ({ readConfigFile }) => {
|
||||
const defaultConfigs = await readConfigFile(require.resolve('../../functional/config'));
|
||||
|
|
|
@ -12,7 +12,7 @@ export default function ({ getService, getPageObjects }) {
|
|||
|
||||
before(async () => {
|
||||
await browser.setWindowSize(1200, 800);
|
||||
await PageObjects.common.navigateToUrl('home', '/home/tutorial_directory/sampleData', {
|
||||
await PageObjects.common.navigateToUrl('home', '/tutorial_directory/sampleData', {
|
||||
useActualUrl: true,
|
||||
insertTimestamp: false,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue