bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/import-tests-ci-resources.sh
Mohamed Amine Ben Salah 11a82d1524
CI presettings: part 1 - set page.viewPort && export visual regressions testing media files (#11422)
* add viewPort to page.js

* clone and import media and visual regressions files to the right directories

* change repo link to official bbb-ci-test-resources.git

* remove execution of import-tests-ci-resources.sh from tests/puppeteer/run.sh

* updates the import directory of the ci testing files

* correct imported repo folder name
2021-02-26 12:49:52 -05:00

19 lines
589 B
Bash

#!/bin/bash -e
testDir=$PWD/tests/puppeteer/;
echo "Cloning bbb-ci-tests-resources repo...";
git clone https://github.com/bigbluebutton/bbb-ci-test-resources.git;
echo "bbb-ci-tests-resources has been imported.";
sleep 2;
echo "Importing browser media files...";
mv -f bbb-ci-test-resources/2.3/media $testDir;
if [[ $REGRESSION_TESTING = true ]]; then
echo "Importing Visual Regressions Testing Files...";
sleep 1;
mv -f bbb-ci-test-resources/2.3/__image_snapshots__ $testDir;
echo "Visual Regressions Testing Files has been imported."
fi
rm -rf bbb-ci-test-resources;