-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into env-var-tests
- Loading branch information
Showing
166 changed files
with
28,089 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: JS (build) | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'visual-js/**' | ||
- .github/workflows/js-build.yml | ||
pull_request: | ||
paths: | ||
- 'visual-js/**' | ||
- .github/workflows/js-build.yml | ||
|
||
defaults: | ||
run: | ||
working-directory: visual-js | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- name: Build with lerna | ||
run: | | ||
corepack enable | ||
yarn install | ||
npm run lint --workspaces --if-present | ||
npm run build --workspaces --if-present | ||
npm run test --workspaces --if-present | ||
env: | ||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | ||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: JS (release) | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
defaults: | ||
run: | ||
working-directory: visual-js | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
registry-url: https://registry.npmjs.org | ||
- name: Setup Git | ||
if: ${{ steps.prep.outputs.tag_name == '' }} | ||
run: | | ||
git config --global user.name "sauce-visual-bot" | ||
git config --global user.email "[email protected]" | ||
- name: Build | ||
run: | | ||
corepack enable | ||
yarn install | ||
npm run build --workspaces --if-present | ||
- name: upgrade & publish version(s) | ||
run: | | ||
npx changeset version | ||
npx changeset publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} | ||
- name: Push to git | ||
run: git push --follow-tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
visual-dotnet/SauceLabs.Visual/GraphQL/DiffingOptionsIn.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SauceLabs.Visual.GraphQL | ||
{ | ||
public class DiffingOptionsIn | ||
{ | ||
[JsonProperty("content")] | ||
public bool Content { get; set; } | ||
[JsonProperty("dimensions")] | ||
public bool Dimensions { get; set; } | ||
[JsonProperty("position")] | ||
public bool Position { get; set; } | ||
[JsonProperty("structure")] | ||
public bool Structure { get; set; } | ||
[JsonProperty("style")] | ||
public bool Style { get; set; } | ||
[JsonProperty("visual")] | ||
public bool Visual { get; set; } | ||
|
||
public DiffingOptionsIn(bool defaultValue) | ||
{ | ||
Content = defaultValue; | ||
Dimensions = defaultValue; | ||
Position = defaultValue; | ||
Structure = defaultValue; | ||
Style = defaultValue; | ||
Visual = defaultValue; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ namespace SauceLabs.Visual.Models | |
public enum DiffingMethod | ||
{ | ||
Simple, | ||
Experimental | ||
Experimental, | ||
Balanced, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
namespace SauceLabs.Visual.Models | ||
{ | ||
[Flags] | ||
public enum DiffingOption | ||
{ | ||
None = 0, | ||
Content = 1 << 0, | ||
Dimensions = 1 << 1, | ||
Position = 1 << 2, | ||
Structure = 1 << 3, | ||
Style = 1 << 4, | ||
Visual = 1 << 5, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace SauceLabs.Visual.Models | ||
{ | ||
public class Region | ||
{ | ||
public int X { get; } | ||
public int Y { get; } | ||
public int Width { get; } | ||
public int Height { get; } | ||
|
||
public Region(int x, int y, int width, int height) | ||
{ | ||
X = x; | ||
Y = y; | ||
Width = width; | ||
Height = height; | ||
} | ||
} | ||
} |
Oops, something went wrong.