Fix pluginSlug error
This commit is contained in:
parent
244c216c76
commit
d99b122d5e
|
@ -15,7 +15,6 @@ const {
|
||||||
} = require( '../../utils/plugin-utils' );
|
} = require( '../../utils/plugin-utils' );
|
||||||
|
|
||||||
const skipMessage = 'Skipping this test because PLUGIN_REPOSITORY is undefined';
|
const skipMessage = 'Skipping this test because PLUGIN_REPOSITORY is undefined';
|
||||||
const pluginSlug = path.basename( PLUGIN_REPOSITORY );
|
|
||||||
const deletePluginFromSite = async ( { request, baseURL } ) => {
|
const deletePluginFromSite = async ( { request, baseURL } ) => {
|
||||||
await deletePlugin( {
|
await deletePlugin( {
|
||||||
request,
|
request,
|
||||||
|
@ -26,7 +25,7 @@ const deletePluginFromSite = async ( { request, baseURL } ) => {
|
||||||
} );
|
} );
|
||||||
};
|
};
|
||||||
|
|
||||||
let pluginPath;
|
let pluginSlug, pluginPath;
|
||||||
|
|
||||||
test.skip( () => {
|
test.skip( () => {
|
||||||
const shouldSkip = ! PLUGIN_REPOSITORY;
|
const shouldSkip = ! PLUGIN_REPOSITORY;
|
||||||
|
@ -42,6 +41,8 @@ test.describe( `${ PLUGIN_NAME } plugin can be uploaded and activated`, () => {
|
||||||
test.use( { storageState: ADMINSTATE } );
|
test.use( { storageState: ADMINSTATE } );
|
||||||
|
|
||||||
test.beforeAll( async ( { playwright, baseURL } ) => {
|
test.beforeAll( async ( { playwright, baseURL } ) => {
|
||||||
|
pluginSlug = path.basename( PLUGIN_REPOSITORY );
|
||||||
|
|
||||||
pluginPath = await test.step(
|
pluginPath = await test.step(
|
||||||
`Download ${ PLUGIN_NAME } plugin zip`,
|
`Download ${ PLUGIN_NAME } plugin zip`,
|
||||||
async () => {
|
async () => {
|
||||||
|
|
Loading…
Reference in New Issue