Ver código fonte

test: Added test script for control type "Date"

version-14
Komal-Saraf0609 3 anos atrás
pai
commit
5483caa8f5
1 arquivos alterados com 3 adições e 4 exclusões
  1. +3
    -4
      cypress/integration/control_date.js

+ 3
- 4
cypress/integration/control_date.js Ver arquivo

@@ -63,14 +63,13 @@ context('Date Control', () => {
cy.get('.datepicker--button').click();

//Picking up the todays date
const todaysDate = Cypress.moment().format('MM-DD-YYYY');
cy.log(todaysDate);
const todays_date = Cypress.moment().format('MM-DD-YYYY');

//Verifying if clicking on "Today" button matches today's date
cy.get_field('date', 'Date').should('have.value', todaysDate);
cy.get_field('date', 'Date').should('have.value', todays_date);
});

it.only('Configuring first day of the week', () => {
it('Configuring first day of the week', () => {
//Visiting "System Settings" page
cy.visit('/app/system-settings/System%20Settings');



Carregando…
Cancelar
Salvar