Skip to content

Instantly share code, notes, and snippets.

@naydav
naydav / gist:b87cd7fa17e7db70a807c6893948283a
Created October 1, 2021 16:33
Custommer App - ActionsForm.js
/*
* <license header>
*/
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import ErrorBoundary from 'react-error-boundary'
import {
Flex,
Heading,
@naydav
naydav / gist:9744aae3fc7278f6cc5e90a5f014e7c9
Created October 1, 2021 16:32
Custommer App - App.js
/*
* <license header>
*/
import React from 'react'
import { Provider, defaultTheme, Flex, View } from '@adobe/react-spectrum'
import ErrorBoundary from 'react-error-boundary'
import ActionsForm from './ActionsForm'
function App (props) {
/*
* <license header>
*/
/**
* This is a sample action showcasing how to access an external API
*
* Note:
* You might want to disable authentication and authorization checks against Adobe Identity Management System for a generic action. In that case:
* - Remove the require-adobe-auth annotation for this action in the manifest.yml of your application
@naydav
naydav / gist:bdd04c9ade77640e01bbb30b6e7b31f2
Created October 1, 2021 16:29
Customer App - ActionsForm.js
/*
* <license header>
*/
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import {
Flex,
Heading,
Form,
/*
* <license header>
*/
import React from 'react'
import { Provider, defaultTheme, View } from '@adobe/react-spectrum'
import ErrorBoundary from 'react-error-boundary'
import { HashRouter as Router } from 'react-router-dom'
import ActionsForm from './ActionsForm'
// dev/tests/integration/testsuite/Magento/ConfigurableProduct/_files/product_configurable_12345.php
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\Product\Attribute\Source\Status;
{
"magento/module-bundle-graph-ql": {
"name": "magento/module-bundle-graph-ql",
"require": [
"magento/module-catalog",
"magento/module-bundle",
"magento/module-catalog-graph-ql",
"magento/module-store",
"magento/module-quote",
"magento/module-quote-graph-ql"
<?xml version="1.0" encoding="UTF-8"?>
12:03:14 [WebAPI SOAP-Tests-CE] <!--
12:03:14 [WebAPI SOAP-Tests-CE] /**
12:03:14 [WebAPI SOAP-Tests-CE] * PHPUnit configuration for Web API functional tests CI build.
12:03:14 [WebAPI SOAP-Tests-CE] *
12:03:14 [WebAPI SOAP-Tests-CE] * Copyright © Magento, Inc. All rights reserved.
12:03:14 [WebAPI SOAP-Tests-CE] * See COPYING.txt for license details.
12:03:14 [WebAPI SOAP-Tests-CE] */
12:03:14 [WebAPI SOAP-Tests-CE] -->
12:03:14 [WebAPI SOAP-Tests-CE] <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
{
products (search: "simple") {
total_count
items {
... on PhysicalProductInterface {
weight
}
attribute_set_id
categories
{
From 4ff6fa558a6333d6828ddd0719da07e708709e87 Mon Sep 17 00:00:00 2001
From: Igor Melnykov <melnykov@adobe.com>
Date: Wed, 1 Aug 2018 22:18:58 -0500
Subject: [PATCH] Add support for @magentoApiConfigFixture in web api tests
---
.../Annotation/ApiConfigFixture.php | 27 ++++
.../TestFramework/App/MutableScopeConfig.php | 125 ++++++++++++++++++
.../Bootstrap/WebapiDocBlock.php | 4 +-
.../Annotation/ConfigFixture.php | 9 +-