Git Product home page Git Product logo

playwright_pom_fixtures_modular_framework_template's Introduction

readme file

Project Structure

The project is structured to ensure modularity and ease of maintenance. Key components include:

  • Playwright Configuration: Located in playwright.config.js, this file contains configurations for running tests in parallel, retry mechanisms, and reporter settings among others.
  • **Page Objects, actions, assertions: Found under the pages directory, page objects like addBooks_pageObjects.ts encapsulate the elements on the web pages and the actions that can be performed on them, promoting reusability and reducing code duplication. Similarly actions, assertions encapsulate the respective tasks in a modular way for respective pages.
  • E2E Tests: The tests/e2e directory contains end-to-end test scripts such as updateBooks.spec.js that utilize the page objects to interact with the web application and verify its behavior.
  • .gitignore: This file ensures that node modules and test results are not tracked by Git, keeping the repository clean.

About Modularity

Modularity is a core principle in this project, allowing for separation of concerns and making the codebase easier to navigate and maintain. By dividing the project into logical units such as configurations, page objects, and tests, we enhance code reusability and simplify the testing process.

API Calls, DateGeneration

API calls & DateGeneration functions can be invoked in the before hooks, so that the pre-requisite actions can be done and the tests are ready in the desired state to start.

Fixtures

Fixtures in Playwright are used to provide a consistent test environment and reusable pieces of code.

By adhering to these principles and structures, the project aims to provide a robust and maintainable test suite for the web application.

Note: The AUT was https://github.com/ruiyigan/books-manager-react-app:

Step1: npm run server Step2: npm start Step3: npx playwright test [Playwright test runner can be started]

playwright_pom_fixtures_modular_framework_template's People

Contributors

balajiregt avatar

Stargazers

Michal Drajna avatar  avatar

Watchers

 avatar

Forkers

mandibt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.