Add UX Test for controls at the row level (#3601)
* Add UX Test for controls at the row level
This commit is contained in:
parent
253f91949b
commit
389fa6257d
@ -0,0 +1,24 @@
|
||||
describe(__filename, function () {
|
||||
it('Ensure flag is visible and toggle on/off', function () {
|
||||
cy.loadAndVisitProject('food.mini');
|
||||
cy.get('.data-table tr:nth-child(1) td:nth-child(2) a')
|
||||
.should('have.class', 'data-table-flag-off')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Flag row 1');
|
||||
|
||||
cy.get('.data-table tr:nth-child(2) td:nth-child(2) a')
|
||||
.should('have.class', 'data-table-flag-off')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Flag row 2');
|
||||
|
||||
cy.get('.data-table tr:nth-child(1) td:nth-child(2) a')
|
||||
.should('have.class', 'data-table-flag-on')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Unflag row 1');
|
||||
|
||||
cy.get('.data-table tr:nth-child(2) td:nth-child(2) a')
|
||||
.should('have.class', 'data-table-flag-on')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Unflag row 2');
|
||||
});
|
||||
});
|
@ -0,0 +1,24 @@
|
||||
describe(__filename, function () {
|
||||
it('Ensure flag is visible and toggle on/off', function () {
|
||||
cy.loadAndVisitProject('food.mini');
|
||||
cy.get('.data-table tr:nth-child(1) td:nth-child(1) a')
|
||||
.should('have.class', 'data-table-star-off')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Star row 1');
|
||||
|
||||
cy.get('.data-table tr:nth-child(2) td:nth-child(1) a')
|
||||
.should('have.class', 'data-table-star-off')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Star row 2');
|
||||
|
||||
cy.get('.data-table tr:nth-child(1) td:nth-child(1) a')
|
||||
.should('have.class', 'data-table-star-on')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Unstar row 1');
|
||||
|
||||
cy.get('.data-table tr:nth-child(2) td:nth-child(1) a')
|
||||
.should('have.class', 'data-table-star-on')
|
||||
.click();
|
||||
cy.assertNotificationContainingText('Unstar row 2');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user