mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
changes
This commit is contained in:
parent
5ef8aff677
commit
dd060cf78c
2 changed files with 31 additions and 7 deletions
36
.github/workflows/cypress.yml
vendored
36
.github/workflows/cypress.yml
vendored
|
@ -2,12 +2,12 @@ name: Automation Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ feature/automation ]
|
branches: [ feature/ui-automation ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ feature/automation ]
|
branches: [ feature/ui-automation ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
automation-tests:
|
install:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -32,25 +32,49 @@ jobs:
|
||||||
- name: Install Automation Deps
|
- name: Install Automation Deps
|
||||||
run: yarn --cwd ./tests install
|
run: yarn --cwd ./tests install
|
||||||
|
|
||||||
|
cypress-tests:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: install
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
# run copies of the current job in parallel
|
||||||
|
containers: [1, 2]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: '**/node_modules'
|
||||||
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
- name: Start Backend
|
- name: Start Backend
|
||||||
run: |
|
run: |
|
||||||
nohup dotnet run -p ./src/Ombi -- --host http://*:3577 &
|
nohup dotnet run -p ./src/Ombi -- --host http://*:3577 &
|
||||||
|
|
||||||
- name: Start Frontend
|
- name: Start Frontend
|
||||||
run: |
|
run: |
|
||||||
nohup yarn --cwd ./src/Ombi/ClientApp start &
|
nohup yarn --cwd ./src/Ombi/ClientApp run start:nomap &
|
||||||
|
|
||||||
- name: Cypress Tests
|
- name: Cypress Tests
|
||||||
uses: cypress-io/github-action@v2.8.2
|
uses: cypress-io/github-action@v2.8.2
|
||||||
with:
|
with:
|
||||||
|
install: false
|
||||||
record: true
|
record: true
|
||||||
browser: chrome
|
browser: chrome
|
||||||
headless: true
|
headless: true
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
|
group: "UI - Chrome"
|
||||||
wait-on: http://localhost:3577/
|
wait-on: http://localhost:3577/
|
||||||
# 7 minutes
|
parallel: true
|
||||||
wait-on-timeout: 420
|
# 8 minutes
|
||||||
|
wait-on-timeout: 1200
|
||||||
env:
|
env:
|
||||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ describe("TV Requests Grid", function () {
|
||||||
.should('have.class', 'requested')
|
.should('have.class', 'requested')
|
||||||
});
|
});
|
||||||
|
|
||||||
it.only("Request Latest Season", () => {
|
it("Request Latest Season", () => {
|
||||||
cy.visit("/details/tv/121361");
|
cy.visit("/details/tv/121361");
|
||||||
|
|
||||||
cy.get('#addFabBtn').click();
|
cy.get('#addFabBtn').click();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue