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

chore: add e2e testing workflow #3609

Draft
wants to merge 1 commit into
base: stable
Choose a base branch
from
Draft
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
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: End-to-end tests

on:
push:
branches: [ stable ]
workflow_dispatch:
inputs:
tag-version:
description: 'The tag version, branch name or SHA to checkout'
required: true

env:
NODE_VERSION: "14"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag-version }}
token: ${{ secrets.PUBLIC_PAT_CICD4_PUBLIC }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: |
rm -rf node_modules
npm install

- name: Build files
run: |
npm run build

- name: Run end-to-end tests
run: |
npm run test:e2e
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ context("Primary Address", () =>
deleteAllAddresses();
});

it("should create register user", () =>
it.skip("should create register user", () =>
{
cy.visit("/register/");
cy.intercept("POST", "/rest/io/customer").as("registerCustomer");
Expand All @@ -27,7 +27,7 @@ context("Primary Address", () =>
});


it("should add first billing address", () =>
it.skip("should add first billing address", () =>
{
cy.login("test@plenty.com", "TestTest00");
cy.wait(2000);
Expand Down