Automattic / wp-e2e-tests

Automated end-to-end tests for WordPress.com

Home Page:https://github.com/Automattic/wp-calypso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wp-theme-switch-spec.js is failing with disabled promise manager

Stojdza opened this issue · comments

After we've switched to Async Base Container, wp-theme-switch-spec.js started to fail when promise manager is disabled: https://circleci.com/gh/Automattic/wp-e2e-tests/20784#tests/containers/1

Weird, this was problematic:

let customizerPage = await CustomizerPage.Expect( driver );
let displayed = await customizerPage.displayed();
return assert( displayed, 'The customizer page was not displayed' );

but this works and achieves the same thing:

return await CustomizerPage.Expect( driver );

maybe something to do with the iFrame but not worth spending time investigating IMO

I think I know why, this spec is using Chai for assertions and so it isn't behaving the same as other assertions. When we do #1274 this should be fixed