-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(custom-views): custom view templates e2e tests (#3339)
* test(custom-views): e2e tests test(custom-views): e2e tests #2 * refactor: do not expect any row click actions as onRowClick handler is not passed to the DataTable * refactor: cleanup * chore: changeset * refactor: use window.app.env instead of parsing origin * refactor: add code comment
- Loading branch information
Showing
10 changed files
with
87 additions
and
4 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,6 @@ | ||
--- | ||
'@commercetools-frontend/application-shell': patch | ||
'@commercetools-frontend/cypress': patch | ||
--- | ||
|
||
Introduce end-to-end tests to validate custom views templates |
File renamed without changes.
File renamed without changes.
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,22 @@ | ||
import { | ||
ENTRY_POINT_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
URL_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
} from '../../support/urls'; | ||
|
||
describe('Channels', () => { | ||
beforeEach(() => { | ||
cy.loginToMerchantCenter({ | ||
entryPointUriPath: ENTRY_POINT_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
initialRoute: URL_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
}); | ||
}); | ||
it('should render page', () => { | ||
cy.findByText('Open the Custom View').click(); | ||
cy.get('#custom-view-TODO') | ||
.getIframeBody() | ||
.within(() => { | ||
cy.findByText('Channels list').should('exist'); | ||
cy.findByText('Store Berlin').should('exist'); | ||
}); | ||
}); | ||
}); |
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,17 @@ | ||
import { | ||
ENTRY_POINT_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
URL_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
} from '../../support/urls'; | ||
|
||
describe('Welcome', () => { | ||
beforeEach(() => { | ||
cy.loginToMerchantCenter({ | ||
entryPointUriPath: ENTRY_POINT_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
initialRoute: URL_CUSTOM_VIEW_TEMPLATE_STARTER, | ||
}); | ||
}); | ||
it('should render page', () => { | ||
cy.findByText('Custom View loader').should('exist'); | ||
cy.findByText('Processing...').should('not.exist'); | ||
}); | ||
}); |
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
77f3de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for application-kit-custom-views ready!
✅ Preview
https://application-kit-custom-views-elu5zigly-commercetools.vercel.app
Built with commit 77f3de5.
This pull request is being automatically deployed with vercel-action
77f3de5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for merchant-center-application-kit ready!
✅ Preview
https://merchant-center-application-2jqlj0b3l-commercetools.vercel.app
Built with commit 77f3de5.
This pull request is being automatically deployed with vercel-action