Skip to content

Commit

Permalink
Merge pull request #2722 from saucelabs/feat/package-bumps
Browse files Browse the repository at this point in the history
Bump UI frameworks (Docusaurus, MDX, React)
  • Loading branch information
Paloma Oliveira authored May 2, 2024
2 parents f37b898 + ffbb6c3 commit 7456ea9
Show file tree
Hide file tree
Showing 94 changed files with 20,205 additions and 16,556 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: actions/setup-python@v2
node-version: 18.x
- uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.10'
- name: Build and Run Docusaurus Site
working-directory: ./
run: |
Expand Down
18 changes: 5 additions & 13 deletions docs/api-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,11 @@ Use the API Testing platform to generate contract tests from an OpenAPI specific
<p>
Create functional tests from multiple locations:
<ul>
<li>
<a href="/api-testing/quickstart">HTTP client</a></li>
<li>
<a href="/api-testing/import-postman-collection">Postman collection (in the HTTP client)</a></li>
<li>
<a href="/api-testing/build-from-spec">OpenAPI spec file</a>
</li>
<li>
<a href="/api-testing/import-har-files/">Import from HAR file (including HAR files from RDC and VDC)</a>
</li>
<li>
<a href="/api-testing/composer">Test composer</a>
</li>
<li><a href="/api-testing/quickstart">HTTP client</a></li>
<li><a href="/api-testing/import-postman-collection">Postman collection (in the HTTP client)</a></li>
<li><a href="/api-testing/build-from-spec">OpenAPI spec file</a></li>
<li><a href="/api-testing/import-har-files/">Import from HAR file (including HAR files from RDC and VDC)</a></li>
<li><a href="/api-testing/composer">Test composer</a></li>
</ul>
</p>
</div>
Expand Down
60 changes: 40 additions & 20 deletions docs/api-testing/composer/assertion-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Assertions are a type of component that you can add to a test using the Composer

Allows you to compare two payloads in terms of text, structure or values.

<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>

<table id="table-api">
<tbody>
Expand Down Expand Up @@ -53,7 +54,8 @@ See also [Common Fields](#assertion-common-fields)
<img src={useBaseUrl('img/api-testing/compares.webp')} alt="Assertion Compares Pic"/>

</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>

```yaml
- id: assert-compares
Expand Down Expand Up @@ -85,7 +87,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element described by the expression contains a specific substring. For example, to test the word _Uber_ is in Uber's product names (_UberX, UberBlack, UberPool_).
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -110,7 +113,8 @@ This assertion is used to check if the element described by the expression conta
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-contains
Expand All @@ -130,7 +134,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element value described by the expression is equal to a specific value. A direct one-to-one comparison.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -155,7 +160,8 @@ This assertion is used to check if the element value described by the expression
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-equals
Expand All @@ -175,7 +181,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element described by the expression exists. The presence of the element, even empty, is enough to consider it a valid assertion.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -192,7 +199,8 @@ This assertion is used to check if the element described by the expression exist
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-exists
Expand All @@ -205,7 +213,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element value described by the expression is greater than a proposed value. The values can be compared as a _string_ or _number_.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -226,7 +235,8 @@ This assertion is used to check if the element value described by the expression
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-greater
Expand All @@ -240,7 +250,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element described by the expression matches at least one item from a given list. For example, the category of a product is one of the approved categories such as men, women, or children.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -261,7 +272,8 @@ This assertion is used to check if the element described by the expression match
See also [Common Fields](#assertion-common-fields).
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-in
Expand All @@ -286,7 +298,8 @@ See also [Common Fields](#assertion-common-fields).
This assertion is used to check if the value of the element defined by the expression belongs to a specific type. This is one of the more commonly used assertions because it can be used to verify various things such as whole numbers, email addresses, phone numbers, URLs, and so forth.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -307,7 +320,8 @@ This assertion is used to check if the value of the element defined by the expre
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-is
Expand All @@ -321,7 +335,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element value described by the expression is less than a proposed value. The values can be compared as a _string_ or _number_.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -342,7 +357,8 @@ This assertion is used to check if the element value described by the expression
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-less
Expand All @@ -356,7 +372,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to check if the element value described by the expression matches a knowledge base of some kind (e.g, U.S. state or zip code). This also gives you the ability to write your own regex (regular expression).
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -381,7 +398,8 @@ This assertion is used to check if the element value described by the expression
See also [Common Fields](#assertion-common-fields)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: assert-matches
Expand All @@ -395,7 +413,8 @@ See also [Common Fields](#assertion-common-fields)
This assertion is used to validate a JSON schema, based on the provided schema definition.
<details><summary><strong>Parameters</strong></summary>
<details>
<summary><strong>Parameters</strong></summary>
<table id="table-api">
<tbody>
Expand All @@ -416,7 +435,8 @@ This assertion is used to validate a JSON schema, based on the provided schema d
See also [Comment](#comment)
</details>
<details><summary><strong>Code View Examples</strong></summary>
<details>
<summary><strong>Code View Examples</strong></summary>
```yaml
- id: set
Expand Down
Loading

0 comments on commit 7456ea9

Please sign in to comment.