2020-05-26 23:45:29 +02:00
|
|
|
describe('Credits', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.clientLogin();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should show credits page', () => {
|
|
|
|
cy.visit('/client/credits');
|
|
|
|
cy.location().should(location => {
|
|
|
|
expect(location.pathname).to.eq('/client/credits');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should show credits text', () => {
|
|
|
|
cy.visit('/client/credits');
|
|
|
|
|
|
|
|
cy.get('body')
|
2021-05-03 17:25:03 +02:00
|
|
|
.find('[data-ref=meta-title]')
|
2020-05-26 23:45:29 +02:00
|
|
|
.first()
|
|
|
|
.should('contain.text', 'Credits');
|
|
|
|
});
|
|
|
|
|
2020-10-15 10:50:53 +02:00
|
|
|
/* it('should have required table elements', () => {
|
2020-05-26 23:45:29 +02:00
|
|
|
cy.visit('/client/credits');
|
|
|
|
|
|
|
|
cy.get('body')
|
|
|
|
.find('table.credits-table > tbody > tr')
|
|
|
|
.first()
|
|
|
|
.find('a')
|
|
|
|
.first()
|
|
|
|
.should('contain.text', 'View')
|
|
|
|
.click()
|
|
|
|
.location()
|
|
|
|
.should(location => {
|
|
|
|
expect(location.pathname).to.eq('/client/credits/VolejRejNm');
|
|
|
|
});
|
2020-10-15 10:50:53 +02:00
|
|
|
});*/
|
2020-05-26 23:45:29 +02:00
|
|
|
});
|