mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4867] adf-error-component refactor (#5056)
* Refactor the adf-error-component Move the custom buttons on demoshell Fix unit test Remove usefull e2e * Add basic example
This commit is contained in:
committed by
Eugenio Romano
parent
4d7c07ef93
commit
4de00fd6ca
@@ -51,22 +51,6 @@ describe('Error Component', () => {
|
||||
await expect(await errorPage.getErrorDescription()).toBe('You\'re not allowed access to this resource on the server.');
|
||||
});
|
||||
|
||||
it('[C280563] Should back home button navigate to the home page', async () => {
|
||||
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/error/404');
|
||||
|
||||
await errorPage.clickBackButton();
|
||||
|
||||
await expect(await browser.getCurrentUrl()).toBe(browser.params.testConfig.adf.url + '/');
|
||||
});
|
||||
|
||||
it('[C280564] Should secondary button by default redirect to report-issue URL', async () => {
|
||||
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/error/403');
|
||||
|
||||
await errorPage.clickSecondButton();
|
||||
|
||||
await expect(await browser.getCurrentUrl()).toBe(browser.params.testConfig.adf.url + '/report-issue');
|
||||
});
|
||||
|
||||
it('[C277304] Should display the error 404 when access to not found page', async () => {
|
||||
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/error/404');
|
||||
await expect(await errorPage.getErrorCode()).toBe('404');
|
||||
|
Reference in New Issue
Block a user