diff --git a/pages/directive/v-bind/v-bind-style.test.js b/pages/directive/v-bind/v-bind-style.test.js index a55aa3eeeae19f4702f0a4d8b154c5d2c3c94fa6..9f2d403fb47c8ad3a33c7900c8a1020de21139ab 100644 --- a/pages/directive/v-bind/v-bind-style.test.js +++ b/pages/directive/v-bind/v-bind-style.test.js @@ -1,6 +1,7 @@ const PAGE_PATH = '/pages/directive/v-bind/v-bind-style' describe('v-bind-style', () => { + const isFirefox = process.env.uniTestPlatformInfo.indexOf('firefox') > -1 let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) @@ -16,9 +17,9 @@ describe('v-bind-style', () => { } else { expect(await view.style('backgroundColor')).toBe('#008000') } - expect(await view.style('borderWidth')).toBe('2px') - if(process.env.uniTestPlatformInfo.startsWith('web')) { - expect(await view.style('borderColor')).toBe('rgb(0, 0, 255)') + expect(await view.style(isFirefox ? 'borderTopWidth' : 'borderWidth')).toBe('2px') + if (process.env.uniTestPlatformInfo.startsWith('web')) { + expect(await view.style(isFirefox ? 'borderTopColor' : 'borderColor')).toBe('rgb(0, 0, 255)') } else { expect(await view.style('borderColor')).toBe('#0000FF') }