File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
packages/compass-e2e-tests/tests/atlas-cloud Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 11import type { Compass } from '../../helpers/compass' ;
2- import { cleanup , init , Selectors } from '../../helpers/compass' ;
2+ import {
3+ cleanup ,
4+ init ,
5+ screenshotIfFailed ,
6+ Selectors ,
7+ } from '../../helpers/compass' ;
38import type { CompassBrowser } from '../../helpers/compass-browser' ;
49import { createNumbersCollection } from '../../helpers/insert-data' ;
510import {
@@ -11,16 +16,20 @@ describe('Rolling indexes', function () {
1116 let compass : Compass ;
1217 let browser : CompassBrowser ;
1318
14- before ( async function ( ) {
19+ before ( function ( ) {
20+ if ( ! isTestingAtlasCloudSandbox ( ) ) {
21+ this . skip ( ) ;
22+ }
23+ } ) ;
24+
25+ beforeEach ( async function ( ) {
1526 compass = await init ( this . test ?. fullTitle ( ) ) ;
1627 browser = compass . browser ;
1728 await browser . setupDefaultConnections ( ) ;
1829 } ) ;
1930
20- before ( function ( ) {
21- if ( ! isTestingAtlasCloudSandbox ( ) ) {
22- this . skip ( ) ;
23- }
31+ afterEach ( async function ( ) {
32+ await screenshotIfFailed ( compass , this . currentTest ) ;
2433 } ) ;
2534
2635 after ( async function ( ) {
You can’t perform that action at this time.
0 commit comments