Skip to content

Commit

Permalink
Fix e2e tests relating to view button (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoelBiju committed Jul 22, 2021
1 parent d1e90f3 commit 9723be9
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Datasets Cards', () => {
['@getDatasetsCount', '@getDatasetsOrder', '@getDatasetsOrder'],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getDatasetsCount', '@getDatasetsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('DLS - Datasets Cards', () => {
timeout: 10000,
}
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getDatasetsCount', '@getDatasetsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('DLS - Proposals Cards', () => {
['@getInvestigationsCount', '@getInvestigationsOrder'],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getInvestigationsCount', '@getInvestigationsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('DLS - Visits Cards', () => {
['@getInvestigationsCount', '@getInvestigationsOrder'],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getInvestigationsCount', '@getInvestigationsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Investigations Cards', () => {
],
{ timeout: 15000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getInvestigationsCount', '@getInvestigationsOrder'], {
timeout: 15000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('ISIS - Datasets Cards', () => {
).wait(['@getDatasetsCount', '@getDatasetsOrder', '@getDatasetsOrder'], {
timeout: 10000,
});
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getDatasetsCount', '@getDatasetsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('ISIS - Instruments Cards', () => {
['@getInstrumentsCount', '@getInstrumentsOrder'],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getInstrumentsCount', '@getInstrumentsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('ISIS - Investigations Cards', () => {
['@getInvestigationsCount', '@getInvestigationsOrder'],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getInvestigationsCount', '@getInvestigationsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('ISIS - Studies Cards', () => {
['@getStudiesCount', '@getStudiesOrder'],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getStudiesCount', '@getStudiesOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('PageContainer Component', () => {
],
{ timeout: 10000 }
);
cy.get('[aria-label="secondary checkbox"]')
cy.get('[aria-label="container-view-button"]')
.click()
.wait(['@getInvestigationsCount', '@getInvestigationsOrder'], {
timeout: 10000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ const ViewButton = (props: {
return (
<Button
className="tour-dataview-toggle-card"
aria-label="container-view-button"
variant="contained"
color="primary"
size="small"
Expand Down

0 comments on commit 9723be9

Please sign in to comment.