Skip to content
Snippets Groups Projects
Commit 7b998622 authored by Kalpit Kothari's avatar Kalpit Kothari
Browse files

cypress: Add test to error.spec

Test for navigation buttons on error page
parent b5d1b824
No related branches found
No related tags found
1 merge request!150cypress: errors.spec: refactor and add test
......@@ -37,6 +37,16 @@ function urlShouldShowError(url, error) {
}
describe('Test Errors', function() {
it('should show navigation buttons on error page', function() {
cy.visit(invalidPageUrl, {
failOnStatusCode: false
});
cy.get('a[onclick="window.history.back();"]')
.should('be.visible');
cy.get('a[href="/"')
.should('be.visible');
});
context('For unarchived repositories', function() {
it('should display NotFoundExc for unarchived repo', function() {
const url = this.Urls.browse_origin_directory(unarchivedRepo.url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment