-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add check for repository url * Use CIRCLE_REPOSITORY_URL directly * Change percy waiting to be with resources instead of time * Add data sources types resource to Edit Data Source + eslint fixes * Separate Page Screenshots in different spec files
- Loading branch information
1 parent
d483785
commit 2c70571
Showing
16 changed files
with
145 additions
and
71 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
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
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,15 @@ | ||
describe('Edit Data Source', () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
cy.visit('/data_sources/1'); | ||
}); | ||
|
||
it('renders the page and takes a screenshot', () => { | ||
cy.getByTestId('DataSource').within(() => { | ||
cy.getByTestId('Name').should('have.value', 'Test PostgreSQL'); | ||
cy.getByTestId('Host').should('have.value', 'postgres'); | ||
}); | ||
|
||
cy.percySnapshot('Edit Data Source - PostgreSQL'); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
cypress/integration/destination/create_destination_spec.js
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,11 @@ | ||
describe('Create Destination', () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
cy.visit('/destinations/new'); | ||
}); | ||
|
||
it('renders the page and takes a screenshot', () => { | ||
cy.getByTestId('TypePicker').should('contain', 'Email'); | ||
cy.percySnapshot('Create Destination - Types'); | ||
}); | ||
}); |
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,15 @@ | ||
describe('Edit Group', () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
cy.visit('/groups/1'); | ||
}); | ||
|
||
it('renders the page and takes a screenshot', () => { | ||
cy.getByTestId('Group').within(() => { | ||
cy.get('h2').should('contain', 'admin'); | ||
cy.get('td').should('contain', 'Example Admin'); | ||
}); | ||
|
||
cy.percySnapshot('Group'); | ||
}); | ||
}); |
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,15 @@ | ||
describe('Group List', () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
cy.visit('/groups'); | ||
}); | ||
|
||
it('renders the page and takes a screenshot', () => { | ||
cy.getByTestId('GroupList') | ||
.should('exist') | ||
.and('contain', 'admin') | ||
.and('contain', 'default'); | ||
|
||
cy.percySnapshot('Groups'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
cypress/integration/settings/organization_settings_spec.js
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,14 @@ | ||
describe('Settings', () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
cy.visit('/settings/organization'); | ||
}); | ||
|
||
it('renders the page and takes a screenshot', () => { | ||
cy.getByTestId('OrganizationSettings').within(() => { | ||
cy.get('select').should('have.value', 'DD/MM/YY'); | ||
}); | ||
|
||
cy.percySnapshot('Organization Settings'); | ||
}); | ||
}); |
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,14 @@ | ||
describe('User List', () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
cy.visit('/users'); | ||
}); | ||
|
||
it('renders the page and takes a screenshot', () => { | ||
cy.getByTestId('TimeAgo').then(($timeAgo) => { | ||
$timeAgo.text('an hour ago'); | ||
}); | ||
|
||
cy.percySnapshot('Users'); | ||
}); | ||
}); |