Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spectre page object template files #22

Open
OrandiH opened this issue Dec 2, 2022 · 0 comments
Open

Update spectre page object template files #22

OrandiH opened this issue Dec 2, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@OrandiH
Copy link

OrandiH commented Dec 2, 2022

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.

@OrandiH OrandiH added enhancement New feature or request good first issue Good for newcomers labels Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant