fix(e2e): several tests (#24539)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6f4382189f
Коммит
1fc6b96c1b
@@ -29,12 +29,14 @@ describe('Keyboard Shortcuts', () => {
|
||||
cy.get('body').cmdOrCtrlShortcut('K');
|
||||
cy.get('#quickSwitchInput').type('T');
|
||||
|
||||
// * Confirm the town-square channel is selected in the suggestion list
|
||||
cy.get('#suggestionList').findByTestId('town-square').should('be.visible').and('have.class', 'suggestion--selected');
|
||||
|
||||
// # Press down arrow
|
||||
cy.wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('body').type('{downarrow}');
|
||||
cy.get('body').type('{downarrow}');
|
||||
|
||||
// * Confirm the offtopic channel is selected in the suggestion list
|
||||
// * Confirm the off-topic channel is selected in the suggestion list
|
||||
cy.get('#suggestionList').findByTestId('off-topic').should('be.visible').and('have.class', 'suggestion--selected');
|
||||
|
||||
// # Press ENTER
|
||||
|
||||
@@ -94,10 +94,8 @@ describe('Keyboard Shortcuts', () => {
|
||||
});
|
||||
|
||||
cy.getLastPostId().then((postId) => {
|
||||
// * verify Save not shown in webview
|
||||
cy.findByText('Save').should('not.exist');
|
||||
|
||||
cy.viewport('iphone-6');
|
||||
// * verify Saved not shown in webview
|
||||
cy.findByText('Saved').should('not.exist');
|
||||
|
||||
// # Save Post
|
||||
cy.uiPostDropdownMenuShortcut(postId, 'Save', 'S', 'RHS_ROOT');
|
||||
|
||||
Ссылка в новой задаче
Block a user