Commit graph

3534 commits

Author SHA1 Message Date
Aleksandar Todorov
afe02e0f2e Add more tests for Create Image Wizard
- sanity validation of each of the 4 steps
- click through buttons Next/Back/Cancel

Notes:

- add data-testid attribute for the release select field b/c
there's no better way to query it
- add @testing-library/jest-dom for additional asserts
2020-11-09 10:52:33 +01:00
Aleksandar Todorov
7c78b5b029 tests: Add test coverage for composeReducer() function. Refs #40 2020-11-09 10:52:33 +01:00
Xiaofeng Wang
d4cb1c4d6b test: Add two more eslint plugin to follow best practices and
anticipate common mistakes

eslint-plugin-testing-library: for writing tests with Testing Library
eslint-plugin-jest-dom: for writing tests with jest-dom
2020-11-06 10:03:26 +01:00
Cockpit Project
afdfb6f387 package.json: Update @patternfly/react-core package dependency
Closes #39
2020-11-05 10:40:26 +01:00
Alexander Todorov
56d3701962
Improve test coverage
tests: Add test for updateCompose redux action
2020-11-05 10:40:04 +01:00
Jenn Giardino
a77b248526 Rearranged landing page to have a table and action
As mentioned in the previous commit, `<Main>` doesn't really
belong in App.js, it instead belongs in LandingPage.js, because
it creates the html/css wrapper for the main contents, as a
sibling to the `<PageHeader>` component used in LandingPage.js.
However, including `<Main>` in LandingPage.js will cause the
tests to fail. Therefore, just the html and classes that
`<Main>` creates is used in LandingPage.js.
2020-11-04 12:24:17 +01:00
Jenn Giardino
00d81f0444 Fix styles for <Main> in App.js
`<Main>` doesn't really belong in App.js given the html it renders,
but there's some additional thing happening with this component
that requires it to be here to support tests. This update addresses
the extra padding that it creates by being used at this level.

Closes #17
2020-11-04 12:24:17 +01:00
Aleksandar Todorov
dbc702575a Make base-url https and add missing // 2020-11-03 16:49:12 +01:00
Aleksandar Todorov
a5e56eea2f Initial test for CreateImageWizard
very basic, make sure we can render all of the expected text
2020-11-03 16:48:46 +01:00
Cockpit Project
a407bc9490 package.json: Update @redhat-cloud-services/frontend-components-utilities package dependency
Closes #35
2020-11-03 15:31:56 +01:00
Aleksandar Todorov
d0cb431b69 Add README with info around testing 2020-11-03 15:31:40 +01:00
Cockpit Project
983801a637 package.json: Update @redhat-cloud-services/frontend-components package dependency
Closes #32
2020-11-02 20:11:28 +01:00
Sanne Raymaekers
a7749e01dc api: Use plural URL forms
Be compliant with api design guidelines, see osbuild/image-builder#42.
2020-11-02 19:41:42 +01:00
Sanne Raymaekers
ec298c769f npm: Use npm-update to keep all packages updated
Rather than freezing the packages and updating them manually, use
npm-update to have the latest available version.
2020-11-02 19:40:48 +01:00
Ryan Long
e71004f291
update keys for deployments (#28) 2020-10-30 10:39:57 -05:00
Major Hayden
c9d5751d57
🚀 Deploy to stage-beta and stage-stable (#25)
Ensure we deploy to stage-beta (when master is updated) and stage-stable (when master-stable is updated).
2020-10-30 07:26:38 -05:00
Sanne Raymaekers
1829bd82d2 tools: Make make-bots executable 2020-10-27 18:09:24 +01:00
Sanne Raymaekers
04846a3fa5 github: Move action to workflows folder 2020-10-27 17:36:36 +01:00
Sanne Raymaekers
7c4efebff8 github: Add npm-update action 2020-10-27 17:24:07 +01:00
Jacob Kozol
ea09205a27 test: add initial jest tests
Basic jest tests are added for the landing page. These tests use the
react testing library so the enzyme dependencies are removed from the
package.json. The travis config is also updated.
2020-10-22 10:23:08 +02:00
Jacob Kozol
1d46f5a618 src: move main component to App component
The Main component in the LandingPage component has been moved to the
App component. This is required so the tests can mock the store without
any insights information.
2020-10-22 10:23:08 +02:00
Major Hayden
404a80e59c 📦 Denote AWS image as raw
We had issues in composer a while back with VHDX in AWS and we have been
using raw images since then.

Signed-off-by: Major Hayden <major@redhat.com>
2020-09-22 15:55:08 +02:00
Sanne Raymaekers
16ec5a7e3f
On travis run with NODE_ENV=production (#11)
* package.json: Clean up scripts

* travis: Run travis build scripts

These run with NODE_ENV=production, which is needed to have correct
routing on all clouddot instances.
2020-09-22 08:23:26 -05:00
Major Hayden
4c6c3fae1b 📦 package.json: Update scripts section
The starter app has been updated over the last few months and new
options are required in the `scripts` section of `package.json`.

Bring the `scripts` section in line with the starter app to fix some
issues around routing requests to `/beta` in CI.

Signed-off-by: Major Hayden <major@redhat.com>
2020-09-22 10:30:34 +02:00
Sanne Raymaekers
a8cd717f55
src: Change page title to Image Builder (#8) 2020-09-21 16:03:19 -05:00
Sanne Raymaekers
bd62e178ce
travis: Configure travis builds (#5)
This should upload builds to osbuild/image-builder-frontend-build.
2020-09-21 10:57:45 -05:00
sanne raymaekers
f62384485b Rename to image-builder-frontend 2020-09-14 12:16:35 +02:00
sanne raymaekers
97c2665463 README: Add development instructions 2020-09-11 10:04:13 +02:00
sanne raymaekers
001e53a733 components: Move image creation to PF4 wizard 2020-09-09 15:31:10 +02:00
sanne raymaekers
3e797b92b0 store: Use redux to store composes 2020-04-28 15:10:43 +02:00
sanne raymaekers
b17be18dfd components: Show status of image composes 2020-04-22 19:16:58 +02:00
sanne raymaekers
3f1cca388f profiles: Add profile with unsafe identity 2020-04-17 15:37:03 +02:00
sanne raymaekers
f93d36b972 copy from RedHatInsights/insights-frontend-starter-app template
Copied removing unused parts, and includes some initial changes.
2020-04-15 12:46:02 +02:00
sanne raymaekers
d9ba8a2f02 osbuild-installer-frontend 2020-03-27 10:14:04 +01:00