const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isMP = platformInfo.startsWith('mp')
const isWeb = platformInfo.startsWith('web')
const isHarmony = platformInfo.startsWith('harmony')
const isIOS = platformInfo.startsWith('ios')
describe('long-waterflow-nested', () => {
if (isWeb || isMP || isHarmony || isIOS || process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
it('dummyTest', async () => {
expect(1).toBe(1)
})
return
}
let page
beforeAll(async () => {
page = await program.reLaunch('/pages/template/long-waterflow-nested/long-waterflow-nested')
await page.waitFor(600)
})
it('check_refresherabort', async () => {
await page.waitFor(1000);
await program.swipe({
startPoint: {x: 100,y: 300},
endPoint: {x: 100,y: 600},
duration: 100
})
await page.waitFor(1500)
expect(page.path).toBe('pages/template/long-waterflow-nested/long-waterflow-nested')
});
})