mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-10 17:04:36 +00:00
ci: sasjs tests logged in fix
This commit is contained in:
@@ -14,7 +14,10 @@ context('sasjs-tests', function () {
|
||||
|
||||
it('Should have all tests successfull', (done) => {
|
||||
cy.get('body').then(($body) => {
|
||||
if ($body.find('input[placeholder="User Name"]').length > 0) {
|
||||
const startButton = $body.find('.ui.massive.icon.primary.left.labeled.button')[0]
|
||||
cy.wait(1000)
|
||||
|
||||
if (startButton && !Cypress.dom.isVisible(startButton)) {
|
||||
cy.get('input[placeholder="User Name"]').type(username)
|
||||
cy.get('input[placeholder="Password"]').type(password)
|
||||
cy.get('.submit-button').click()
|
||||
@@ -44,7 +47,10 @@ context('sasjs-tests', function () {
|
||||
|
||||
it('Should have all tests successfull with debug on', (done) => {
|
||||
cy.get('body').then(($body) => {
|
||||
if ($body.find('input[placeholder="User Name"]').length > 0) {
|
||||
const startButton = $body.find('.ui.massive.icon.primary.left.labeled.button')[0]
|
||||
cy.wait(1000)
|
||||
|
||||
if (startButton && !Cypress.dom.isVisible(startButton)) {
|
||||
cy.get('input[placeholder="User Name"]').type(username)
|
||||
cy.get('input[placeholder="Password"]').type(password)
|
||||
cy.get('.submit-button').click()
|
||||
|
||||
Reference in New Issue
Block a user