Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
745 B
6
Indexable
Never
describe('Facebook Gaming Test', () => {
  it('Prints data-nofybiz value for article -quiz', () => {
    cy.visit('https://www.facebook.com/');
    cy.contains('button', 'Allow all cookies').click();
    cy.getByTestId('royal_email').click().type('lucyrogan11@gmail.com');
    cy.getByTestId('royal_email').tab();
    cy.getByTestId('royal_pass').type('lucyrog1!');
    cy.getByTestId('royal_pass').type('{enter}');

    cy.visit('https://www.facebook.com/gaming/play/sandbox/474443516378085/fanpageNT/?source=www_unknown')
  
    cy.get('article.quiz[data-nofybiz]').then((articleElement) => {
      const dataNofybizValue = articleElement.attr('data-nofybiz');
      cy.log('data-nofybiz:', dataNofybizValue);
    });
  });
});