Skip to content

version fixed. #24

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

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: v3.3.0.
name: v3.4.2.
on:
push

Expand Down
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Magento WebApp Test Automation Framework

[![v3.4.2.](https://github.com/najeeb1023/magento-webapp/actions/workflows/release.yaml/badge.svg)](https://github.com/najeeb1023/magento-webapp/actions/workflows/release.yaml)
![License](https://img.shields.io/badge/license-MIT-green)

## Overview

This repository contains a test automation framework for the Luma web application using Playwright and Cucumber. The framework is designed with Page Object Model (POM) and Facade design patterns to ensure maintainability and scalability.

## Features

- **Playwright Integration**: Fast and reliable end-to-end testing.
- **Cucumber Support**: BDD testing approach with Gherkin syntax.
- **POM Design Pattern**: Enhances test maintenance and reusability.
- **Facade Design Pattern**: Simplifies complex interactions with a unified interface.
- **CI/CD Integration**: Seamless integration with CI pipelines.

## Project Structure

├── .github/workflows # GitHub Actions workflows
├── config # Configuration files
├── logger # Custom logging utilities
├── src/test # Test scripts and page objects
├── package.json # Project dependencies and scripts
├── playwright.config.ts # Playwright configuration
├── tsconfig.json # TypeScript configuration

## Getting Started

### Prerequisites

- Node.js (v14 or higher)
- npm or yarn

### Installation

1. Clone the repository:
git clone https://github.com/najeeb1023/magento-webapp.git

2. Install dependencies:
npm i

3. To run the project:
cucumber:luma - To run all the test scenarios.
cucumber:luma:tags - Add your scenario tag in the end using -> @tag.
cucumber:luma:debug - After attatching the debugger you can easily debug the desired scenario.
2 changes: 1 addition & 1 deletion config/cucumber.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { DEFAULT_THEME } = require("@cucumber/pretty-formatter"); // pretty formatter removed.
const { DEFAULT_THEME } = require("@cucumber/pretty-formatter");

module.exports = {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magento-webapp",
"version": "v3.3.0",
"version": "v3.4.2",
"main": "index.js",
"scripts": {
"cucumber:luma": "cucumber-js --config=config/cucumber.js",
Expand Down
2 changes: 0 additions & 2 deletions src/test/hooks/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ let context: BrowserContext;

BeforeAll(async function () {
pageFixture.logger = createCustomLogger();
pageFixture.logger.info('----------------- New Test Run -----------------' + "\n");
browser = await chromium.launch(config);
});

Before(async function () {
context = await browser.newContext({viewport: null});
const page = await context.newPage();
pageFixture.page = page;
// pageFixture.logger = createCustomLogger();
});

After(async function ({ pickle, result }) {
Expand Down
Loading