Compare commits

...
Author SHA1 Message Date
Edd 3e2ed0a680 fix(explorer-e2e): remove details check 2023-08-14 14:10:22 +01:00
Edd 6d570679f8 test(explorer): remove looping through all assets 2023-08-14 13:48:40 +01:00
Edd c402ec3a6e chore(explorer): enable skipped test 2023-08-14 13:48:40 +01:00
@@ -31,17 +31,15 @@ context('Asset page', { tags: '@regression' }, () => {
});
});
it.skip('should open details page when clicked on "View details"', () => {
it('should open details page when clicked on "View details"', () => {
cy.getAssets().then((assets) => {
assets.forEach((asset) => {
cy.get(`[row-id="${asset.id}"] [col-id="actions"] button`)
.eq(0)
.should('contain.text', 'View details');
// Set to only click through one asset as the navigation could be
// causing a 'ResizeLoopObserver' error to be thrown inappropriately
assets.slice(0, 1).forEach((asset) => {
cy.get(`[row-id="${asset.id}"] [col-id="actions"] button`)
.eq(0)
.click();
cy.getByTestId('asset-header').should('have.text', asset.name);
cy.go('back');
});
});
});