Skip to content

Update spectre page object template files #22

Description

@OrandiH

Template files for the qa package in frontier for generating page objects should be updated. The file should be updated to have the following content:

// All imports go here

// Importing Base Page Object
import Page from './page';

/**
 * Page containing specific selectors and methods for a specific page
 */
class <PageObject> extends Page {
  /**
     * Selectors
     * Define selectors in this section using getter methods
     */

    /**
     * Functions
     * Define functions for different methods that can be carried out on the page
     */

}

const <pagename> = new <PageObject>();
export { <pagename> as default, pagename as <PageObject> };

The method for scaffolding the page object should be updated to ensure the correct template strings have been updated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions