Skip to content

Commit 78ee7c7

Browse files
committed
fix: fix depends on ui test
1 parent 3ba9c2d commit 78ee7c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cypress/integration/depends_on.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
context('Depends On', () => {
2+
beforeEach(() => {
3+
cy.login();
4+
cy.visit('/desk');
5+
});
26
before(() => {
37
cy.login();
48
cy.visit('/desk');
@@ -49,6 +53,7 @@ context('Depends On', () => {
4953
cy.get('.control-input [data-fieldname="dependant_field"]').should('not.be.disabled');
5054
});
5155
it('should display the field depending on other fields value', () => {
56+
cy.new_form('Test Depends On');
5257
cy.get('.control-input [data-fieldname="display_dependant_field"]').should('not.be.visible');
5358
cy.get('.control-input [data-fieldname="test_field"]').clear();
5459
cy.fill_field('test_field', 'Value');

0 commit comments

Comments
 (0)