async handleDownload()

in source/console/src/Components/Details/Details.js [259:270]


    async handleDownload() {
        try {
            const testId = this.state.testId;
            const { testType } = this.state.data;

            let filename = this.state.data.fileType === 'zip' ? `${testId}.zip` : `${testId}.jmx`
            const url = await Storage.get(`test-scenarios/${testType}/${filename}`, { expires: 10 });
            window.open(url, '_blank');
        } catch (error) {
            console.error('Error', error);
        }
    }