Skip to content

Commit 57ece29

Browse files
committed
only set preferences for desktop tests
1 parent eb9c038 commit 57ece29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/compass-e2e-tests/tests/collection-validation-tab.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { Compass } from '../helpers/compass';
99
import * as Selectors from '../helpers/selectors';
1010
import { createNumbersCollection } from '../helpers/insert-data';
1111
import { expect } from 'chai';
12+
import { isTestingDesktop } from '../helpers/test-runner-context';
1213

1314
const NO_PREVIEW_DOCUMENTS = 'No Preview Documents';
1415
const PASSING_VALIDATOR = '{ $jsonSchema: {} }';
@@ -55,7 +56,9 @@ describe('Collection validation tab', function () {
5556

5657
context('when the schema validation is empty', function () {
5758
before(async function () {
58-
await browser.setFeature('enableExportSchema', true);
59+
if (isTestingDesktop()) {
60+
await browser.setFeature('enableExportSchema', true);
61+
}
5962
});
6063

6164
it('provides users with a button to generate rules', async function () {

0 commit comments

Comments
 (0)