@@ -13,7 +13,7 @@ import {
1313 UserSettings ,
1414} from '../locators/settings' ;
1515import { open_Alice1_Bob1_friends } from '../state_builder' ;
16- import { IOSTestContext } from '../utils/capabilities_ios' ;
16+ import { IOS_PRO_CONTEXT } from '../utils/capabilities_ios' ;
1717import { newUser } from '../utils/create_account' ;
1818import { makeAccountPro } from '../utils/mock_pro' ;
1919import { closeApp , openAppOnPlatformSingleDevice , SupportedPlatformsType } from '../utils/open_app' ;
@@ -63,11 +63,8 @@ bothPlatformsIt({
6363} ) ;
6464
6565async function nonProAnimatedDP ( platform : SupportedPlatformsType , testInfo : TestInfo ) {
66- const iosContext : IOSTestContext = {
67- sessionProEnabled : 'true' ,
68- } ;
6966 const { device } = await test . step ( TestSteps . SETUP . NEW_USER , async ( ) => {
70- const { device } = await openAppOnPlatformSingleDevice ( platform , testInfo , iosContext ) ;
67+ const { device } = await openAppOnPlatformSingleDevice ( platform , testInfo , IOS_PRO_CONTEXT ) ;
7168 await newUser ( device , USERNAME . ALICE , { saveUserData : false } ) ;
7269 return { device } ;
7370 } ) ;
@@ -81,11 +78,8 @@ async function nonProAnimatedDP(platform: SupportedPlatformsType, testInfo: Test
8178 } ) ;
8279}
8380async function proActivatedCTA ( platform : SupportedPlatformsType , testInfo : TestInfo ) {
84- const iosContext : IOSTestContext = {
85- sessionProEnabled : 'true' ,
86- } ;
8781 const { device, alice } = await test . step ( TestSteps . SETUP . NEW_USER , async ( ) => {
88- const { device } = await openAppOnPlatformSingleDevice ( platform , testInfo , iosContext ) ;
82+ const { device } = await openAppOnPlatformSingleDevice ( platform , testInfo , IOS_PRO_CONTEXT ) ;
8983 const alice = await newUser ( device , USERNAME . ALICE ) ;
9084 return { device, alice } ;
9185 } ) ;
@@ -104,11 +98,8 @@ async function proActivatedCTA(platform: SupportedPlatformsType, testInfo: TestI
10498}
10599
106100async function proAnimatedDP ( platform : SupportedPlatformsType , testInfo : TestInfo ) {
107- const iosContext : IOSTestContext = {
108- sessionProEnabled : 'true' ,
109- } ;
110101 const { device, alice } = await test . step ( TestSteps . SETUP . NEW_USER , async ( ) => {
111- const { device } = await openAppOnPlatformSingleDevice ( platform , testInfo , iosContext ) ;
102+ const { device } = await openAppOnPlatformSingleDevice ( platform , testInfo , IOS_PRO_CONTEXT ) ;
112103 const alice = await newUser ( device , USERNAME . ALICE ) ;
113104 return { device, alice } ;
114105 } ) ;
@@ -126,15 +117,12 @@ async function proAnimatedDP(platform: SupportedPlatformsType, testInfo: TestInf
126117}
127118
128119async function proAnimatedDPShows ( platform : SupportedPlatformsType , testInfo : TestInfo ) {
129- const iosContext : IOSTestContext = {
130- sessionProEnabled : 'true' ,
131- } ;
132120 const { devices, prebuilt } = await test . step ( TestSteps . SETUP . QA_SEEDER , async ( ) => {
133121 return await open_Alice1_Bob1_friends ( {
134122 platform,
135123 focusFriendsConvo : false ,
136124 testInfo,
137- iOSContext : iosContext ,
125+ iOSContext : IOS_PRO_CONTEXT ,
138126 } ) ;
139127 } ) ;
140128 const { alice1, bob1 } = devices ;
0 commit comments