Updated describe block for better logging
This commit is contained in:
parent
cd8af3e2c4
commit
a631454b91
|
@ -18,25 +18,30 @@ const { GITHUB_REPOSITORY, PLUGIN_NAME, GITHUB_TOKEN } = process.env;
|
||||||
let zipUrl;
|
let zipUrl;
|
||||||
let pluginPath;
|
let pluginPath;
|
||||||
|
|
||||||
utils.describeIf( GITHUB_REPOSITORY )( 'Upload and activate plugin', () => {
|
utils.describeIf( GITHUB_REPOSITORY )(
|
||||||
beforeAll( async () => {
|
`Upload and activate ${ PLUGIN_NAME } from ${ GITHUB_REPOSITORY }`,
|
||||||
zipUrl = await getLatestReleaseZipUrl( GITHUB_REPOSITORY, GITHUB_TOKEN );
|
() => {
|
||||||
|
beforeAll( async () => {
|
||||||
|
zipUrl = await getLatestReleaseZipUrl(
|
||||||
|
GITHUB_REPOSITORY,
|
||||||
|
GITHUB_TOKEN
|
||||||
|
);
|
||||||
|
|
||||||
pluginPath = await getRemotePluginZip( zipUrl, GITHUB_TOKEN );
|
pluginPath = await getRemotePluginZip( zipUrl, GITHUB_TOKEN );
|
||||||
|
|
||||||
await merchant.login();
|
await merchant.login();
|
||||||
});
|
} );
|
||||||
|
|
||||||
afterAll( async () => {
|
afterAll( async () => {
|
||||||
await merchant.logout();
|
await merchant.logout();
|
||||||
});
|
} );
|
||||||
|
|
||||||
it( 'can upload and activate the provided plugin', async () => {
|
it( 'can upload and activate the provided plugin', async () => {
|
||||||
await merchant.uploadAndActivatePlugin( pluginPath, PLUGIN_NAME );
|
await merchant.uploadAndActivatePlugin( pluginPath, PLUGIN_NAME );
|
||||||
});
|
} );
|
||||||
|
|
||||||
it( 'can remove downloaded plugin zip', async () => {
|
it( 'can remove downloaded plugin zip', async () => {
|
||||||
await deleteDownloadedPluginFiles();
|
await deleteDownloadedPluginFiles();
|
||||||
} );
|
} );
|
||||||
|
}
|
||||||
});
|
);
|
||||||
|
|
Loading…
Reference in New Issue