fix: integrate feedback

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2022-05-11 10:39:53 +01:00
parent 2309749d15
commit d938a528c3
6 changed files with 100 additions and 106 deletions

View File

@@ -1,35 +1,33 @@
import { randHash } from '../utils'
const randUser = randHash()
import { randHash } from "../utils";
const randUser = randHash();
describe('Stack', function () {
const board = 'TestBoard'
const password = 'pass123'
const stack = 'List 1'
describe("Stack", function () {
const board = "TestBoard";
const password = "pass123";
const stack = "List 1";
before(function () {
before(function () {
cy.nextcloudCreateUser(randUser, password)
cy.deckCreateBoard({ user: randUser, password }, board)
cy.deckCreateBoard({ user: randUser, password }, board)
})
beforeEach(function() {
cy.logout()
beforeEach(function () {
cy.logout()
cy.login(randUser, password)
})
it('Can create a stack', function () {
cy.get('.app-navigation button.app-navigation-toggle').click()
cy.get('#app-navigation-vue .app-navigation__list .app-navigation-entry')
.eq(3)
.find('a.app-navigation-entry-link')
.first().click({force: true})
it("Can create a stack", function () {
cy.openLeftSidebar()
cy.get("#app-navigation-vue .app-navigation__list .app-navigation-entry")
.eq(3)
.find("a.app-navigation-entry-link")
.first()
.click({ force: true })
cy.get('#stack-add button').first().click()
cy.get('#stack-add form input#new-stack-input-main')
.type(stack)
cy.get('#stack-add form input[type=submit]')
.first().click()
cy.get("#stack-add button").first().click()
cy.get("#stack-add form input#new-stack-input-main").type(stack)
cy.get("#stack-add form input[type=submit]").first().click()
cy.get('.board .stack').eq(0).contains(stack).should('be.visible')
})
})
cy.get(".board .stack").eq(0).contains(stack).should("be.visible")
})
});