I have a small suite of Protractor tests. In with the tests, I have some page object classes that extend from a common base class. In my protractor config, I have:
specs: [ './showcase/e2e/**/*.e2e-spec.ts' ] If I run Protractor with this config, all the tests run. But, if I try to run a single test, I run into an error.
I'm trying to run a specific test with this command:
protractor --specs showcase/e2e/app/components/dropdown/dropdown.e2e-spec.ts But then I get an error:
Error: TSError: ⨯ Unable to compile TypeScript showcase/e2e/shared/components/dropdown/dropdown.po.ts (3,32): Property 'setPrototypeOf' does not exist on type 'ObjectConstructor'. (2339) Here is the contents of dropdown.po.ts:
import { ExamplePage } from '../example.po'; export const COMPONENT_ID = 'dropdown'; export class DropdownPage extends ExamplePage { navigateTo() { this.navigateToComponentPage('dropdown'); } } There's got to be something I'm missing. Any idea why I get this error when I try to run a single test case, but no error when I run everything? I'm stumped.