Skip to content

Commit

Permalink
skip BDBag tests in CI but still run CSV tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchudy committed Aug 20, 2024
1 parent d7832de commit 3fe9ec7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ test.describe('View existing record', () => {
});

await test.step('should have "BDBag" as a download option and download the file.', async () => {
test.skip(!!process.env.CI, 'in CI the export server component is not configured and cannot be tested');

await ExportLocators.getExportDropdown(page).click();

const bagOption = ExportLocators.getExportOption(page, 'BDBag');
Expand All @@ -373,7 +375,8 @@ test.describe('View existing record', () => {
});

await test.step('should have "Configurations" option that opens a submenu to download the config file.', async () => {
// let exportSubmenuOptions, configOption;
test.skip(!!process.env.CI, 'in CI the export server component is not configured and cannot be tested');

await ExportLocators.getExportDropdown(page).click();

const configOption = ExportLocators.getExportOption(page, 'configurations');
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/default-config/record/links.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ test.describe('show/hide empty section button state', () => {


test('export button', async ({ page, baseURL }, testInfo) => {
test.skip(!!process.env.CI, 'in CI the export server component is not configured and cannot be tested');

await goToPage(page, baseURL, testInfo, testParams.table_name);

await test.step('first option must be `This record (CSV)` and user should be able to download the file.', async () => {
Expand All @@ -104,6 +102,8 @@ test('export button', async ({ page, baseURL }, testInfo) => {
});

await test.step('second option must be default `BDBag` and user should be able to download the file.', async () => {
test.skip(!!process.env.CI, 'in CI the export server component is not configured and cannot be tested');

await ExportLocators.getExportDropdown(page).click();
const option = ExportLocators.getExportOption(page, 'BDBag');
await expect.soft(option).toHaveText('BDBag');
Expand Down

0 comments on commit 3fe9ec7

Please sign in to comment.