-
Notifications
You must be signed in to change notification settings - Fork 121
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 feature/format-violations-on-block
- Loading branch information
Showing
51 changed files
with
1,883 additions
and
284 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 |
---|---|---|
@@ -1,2 +1 @@ | ||
VITE_API_URI=http://localhost:8080 | ||
VITE_SERVER_URI=http://localhost:8000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# This file required to override .gitignore when publishing to npm | ||
# This file required to override .gitignore when publishing to npm | ||
website/ | ||
plugins/ |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
describe('Repo', () => { | ||
beforeEach(() => { | ||
cy.visit('/admin/repo'); | ||
|
||
// prevent failures on 404 request and uncaught promises | ||
cy.on('uncaught:exception', () => false); | ||
}); | ||
|
||
describe('Code button for repo row', () => { | ||
it('Opens tooltip with correct content and can copy', () => { | ||
const cloneURL = 'http://localhost:8000/finos/test-repo.git'; | ||
const tooltipQuery = 'div[role="tooltip"]'; | ||
|
||
cy | ||
// tooltip isn't open to start with | ||
.get(tooltipQuery) | ||
.should('not.exist'); | ||
|
||
cy | ||
// find the entry for finos/test-repo | ||
.get('a[href="/admin/repo/test-repo"]') | ||
// take it's parent row | ||
.closest('tr') | ||
// find the nearby span containing Code we can click to open the tooltip | ||
.find('span') | ||
.contains('Code') | ||
.should('exist') | ||
.click(); | ||
|
||
cy | ||
// find the newly opened tooltip | ||
.get(tooltipQuery) | ||
.should('exist') | ||
.find('span') | ||
// check it contains the url we expect | ||
.contains(cloneURL) | ||
.should('exist') | ||
.parent() | ||
// find the adjacent span that contains the svg | ||
.find('span') | ||
.next() | ||
// check it has the copy icon first and click it | ||
.get('svg.octicon-copy') | ||
.should('exist') | ||
.click() | ||
// check the icon has changed to the check icon | ||
.get('svg.octicon-copy') | ||
.should('not.exist') | ||
.get('svg.octicon-check') | ||
.should('exist'); | ||
|
||
// failed to successfully check the clipboard | ||
}); | ||
}); | ||
}); |
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
Oops, something went wrong.