Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
52f9190
Initial integration action files
rickyp72 Mar 24, 2023
7a905b5
Initial integration action files
rickyp72 Mar 24, 2023
320af7d
Trigger action run test
rickyp72 Mar 24, 2023
a85122e
Set ui-user cred vars
rickyp72 Mar 28, 2023
5f5fe59
change test action name
rickyp72 Mar 28, 2023
7ae9a4a
Add full playwright test
rickyp72 Mar 31, 2023
498e797
Make test fail
rickyp72 Mar 31, 2023
e187792
Make test fail
rickyp72 Mar 31, 2023
442af85
Make test fail
rickyp72 Mar 31, 2023
6ed2ca7
Make test pass
rickyp72 Mar 31, 2023
794983d
Clean up
rickyp72 Mar 31, 2023
faf95d9
add layer changes - ready for testing
Apr 19, 2023
b5185a6
fixed typescript errors
Apr 25, 2023
5e44a0a
fix permissions table empty rows
Apr 25, 2023
7356f12
make fixes
May 3, 2023
1fe2489
add tests
May 4, 2023
cd2dfe0
address some PR comments
May 4, 2023
6519af7
remove unused imports
May 4, 2023
cc27d8e
trigger on PR open
rickyp72 May 4, 2023
f528814
use basic playwright test to test actions
rickyp72 May 4, 2023
61d07f1
check delete happens
rickyp72 May 5, 2023
34f7738
make PR changes
May 10, 2023
96dd3dc
check create schema happens
rickyp72 May 10, 2023
df60c15
restore delete action
rickyp72 May 11, 2023
75b912d
Merge branch 'v7.0.0' into feature/layers
lcardno10 May 15, 2023
0ad8307
Merge pull request #40 from no10ds/feature/layers
lcardno10 May 15, 2023
8287165
Merge branch 'release/v7.0.0' of github.com:no10ds/rapid-ui into feat…
Aug 11, 2023
d186ca0
Get the integration tests working against v7
Aug 17, 2023
6446ada
Remove eslint exception
Aug 17, 2023
2cd0602
Only test on chrome
Aug 17, 2023
92b9415
update to int
Aug 21, 2023
ca361b4
Merge pull request #48 from no10ds/feature/finish-integration-tests
lcardno10 Aug 21, 2023
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
8 changes: 7 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# For running the UI against the API
NEXT_PUBLIC_API_URL=
NEXT_PUBLIC_API_URL_PROXY=
NEXT_PUBLIC_API_URL_PROXY=

# For running the playwright tests
DOMAIN=
RESOURCE_PREFIX=
AWS_REGION=
48 changes: 40 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,69 @@
"plugin:jest-dom/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "testing-library", "jest-dom"],
"plugins": [
"@typescript-eslint",
"testing-library",
"jest-dom"
],
"rules": {
"prefer-const": 0,
"react/jsx-uses-vars": 1,
"react/jsx-uses-react": 1,
"strict": 0,
"no-console": ["warn", { "allow": ["error", "info"] }],
"no-console": [
"warn",
{
"allow": [
"error",
"info"
]
}
],
"no-unused-vars": "off",
"no-debugger": "off",
"no-extra-semi": 0,
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }],
"react/no-unescaped-entities": [
"error",
{
"forbid": [
">",
"}"
]
}
],
"@typescript-eslint/no-extra-semi": 0,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "args": "all", "argsIgnorePattern": "^_" }
{
"args": "all",
"argsIgnorePattern": "^_"
}
]
},
"ignorePatterns": ["node_modules", "build", "public"],
"ignorePatterns": [
"node_modules",
"build",
"public"
],
"overrides": [
{
// only run testling library linting on test files not entire codebase
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"],
"files": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
],
"extends": [
"plugin:testing-library/react"
],
"rules": {
"react/display-name": 0,
"testing-library/no-container": "warn",
"testing-library/no-node-access": "warn"
}
}
]
}
}
37 changes: 37 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: rAPId Integration Tests

on:
push:
branches:
- "**"

workflow_dispatch:

pull_request:
types:
- opened

jobs:

run-ui-test:
runs-on: self-hosted

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 19

- name: Install packages
run: make npm-setup

- name: Install playwright browsers
run: npx playwright install-deps && npx playwright install

- name: run playwright tests
run: npx playwright test playwright
env:
DOMAIN: ${{ secrets.DOMAIN }}
RESOURCE_PREFIX: ${{ secrets.RESOURCE_PREFIX }}
AWS_REGION: ${{ secrets.AWS_REGION }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ yarn-error.log*
# local env files
.env*.local
.env
.secrets

/public/__ENV.js

Expand All @@ -38,4 +39,6 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

*.zip
*.zip
playwright/.auth
playwright/.downloads
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ LATEST_COMMIT_HASH=$(shell git rev-parse --short HEAD)
ZIP_PATH=$(IMAGE_NAME)-$(LATEST_COMMIT_HASH)

LATEST_TAG=$(shell gh api /repos/no10ds/rapid-ui/releases/latest | jq -r ".tag_name")
ifeq ($(LATEST_TAG), null)
TAG_NAME="$(IMAGE_NAME)-$(LATEST_COMMIT_HASH)"
else
TAG_NAME="$(LATEST_TAG)-dev-$(LATEST_COMMIT_HASH)"
endif

TAG_NAME="$(IMAGE_NAME)-$(LATEST_COMMIT_HASH)"
help: ## List targets and description
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const customJestConfig = {
'<rootDir>/.next/',
'<rootDir>/node_modules/',
'<rootDir>/coverage',
'<rootDir>/dist'
'<rootDir>/dist',
'<rootDir>/playwright'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
Expand Down
Loading