Reorganize

This commit is contained in:
Jon Lane 2023-09-08 14:05:03 -07:00
parent e99a61f985
commit 1e9a63d15a
1 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,3 @@
if (
process.env.API_BASE_URL &&
! process.env.API_BASE_URL.includes( 'localhost' )
) {
const { chromium, expect } = require( '@playwright/test' );
}
const { GITHUB_TOKEN, UPDATE_WC } = process.env;
const { downloadZip, deleteZip } = require( './utils/plugin-utils' );
const axios = require( 'axios' ).default;
@ -14,6 +8,8 @@ module.exports = async ( config ) => {
process.env.API_BASE_URL &&
! process.env.API_BASE_URL.includes( 'localhost' )
) {
const { chromium, expect } = require( '@playwright/test' );
const { baseURL, userAgent } = config.projects[ 0 ].use;
const contextOptions = { baseURL, userAgent };