Skip to content

Commit 9314837

Browse files
committed
fix(forms): E2E Tests
1 parent d645e67 commit 9314837

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/cypress/e2e/form/service_catalog/service_catalog_page.cy.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ describe('Service catalog page', () => {
290290
cy.changeProfile('Super-Admin');
291291

292292
// Create a simple form
293-
const form_name = `Test form for service_catalog_page.cy.js ${(new Date()).getTime()}`;
293+
const time = (new Date()).getTime();
294+
const form_name = `Test form for service_catalog_page.cy.js ${time}`;
294295
createActiveForm(form_name);
295296
cy.get('@form_id').visitFormTab('Form');
296297
cy.findByRole('button', {'name': 'Add a question'}).click();
@@ -306,6 +307,7 @@ describe('Service catalog page', () => {
306307
cy.validateMenuIsActive('Service catalog');
307308

308309
// Go to our form
310+
cy.findByPlaceholderText('Search for forms...').type(time);
309311
cy.findByRole('region', {'name': form_name}).as('form');
310312
cy.get('@form').click();
311313
cy.url().should('include', '/Form/Render');

0 commit comments

Comments
 (0)