Skip to content

Commit

Permalink
Ensure Item Edit page tab is visible before clicking it.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed Jan 15, 2025
1 parent 5623cc9 commit aad1eab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/item-edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ beforeEach(() => {

describe('Edit Item > Edit Metadata tab', () => {
it('should pass accessibility tests', () => {
cy.get('a[data-test="metadata"]').should('be.visible');
cy.get('a[data-test="metadata"]').click();

// Our selected tab should be active
Expand All @@ -34,6 +35,7 @@ describe('Edit Item > Edit Metadata tab', () => {
describe('Edit Item > Status tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="status"]').should('be.visible');
cy.get('a[data-test="status"]').click();

// Our selected tab should be active
Expand All @@ -50,6 +52,7 @@ describe('Edit Item > Status tab', () => {
describe('Edit Item > Bitstreams tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="bitstreams"]').should('be.visible');
cy.get('a[data-test="bitstreams"]').click();

// Our selected tab should be active
Expand Down Expand Up @@ -77,6 +80,7 @@ describe('Edit Item > Bitstreams tab', () => {
describe('Edit Item > Curate tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="curate"]').should('be.visible');
cy.get('a[data-test="curate"]').click();

// Our selected tab should be active
Expand All @@ -93,6 +97,7 @@ describe('Edit Item > Curate tab', () => {
describe('Edit Item > Relationships tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="relationships"]').should('be.visible');
cy.get('a[data-test="relationships"]').click();

// Our selected tab should be active
Expand All @@ -109,6 +114,7 @@ describe('Edit Item > Relationships tab', () => {
describe('Edit Item > Version History tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="versionhistory"]').should('be.visible');
cy.get('a[data-test="versionhistory"]').click();

// Our selected tab should be active
Expand All @@ -125,6 +131,7 @@ describe('Edit Item > Version History tab', () => {
describe('Edit Item > Access Control tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="access-control"]').should('be.visible');
cy.get('a[data-test="access-control"]').click();

// Our selected tab should be active
Expand All @@ -141,6 +148,7 @@ describe('Edit Item > Access Control tab', () => {
describe('Edit Item > Collection Mapper tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="mapper"]').should('be.visible');
cy.get('a[data-test="mapper"]').click();

// Our selected tab should be active
Expand Down

0 comments on commit aad1eab

Please sign in to comment.