refactor(client): clear selector type error in editor cypress test (#49129)

This commit is contained in:
Muhammed Mustafa
2023-01-25 15:08:57 +02:00
committed by GitHub
parent 09f351fec1
commit 5b43fd0a00
@@ -1,4 +1,4 @@
const selectors = {
const editorElement = {
editor: '.monaco-editor'
};
@@ -7,7 +7,7 @@ describe('Editor Shortcuts', () => {
cy.visit(
'learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements'
);
cy.get(selectors.editor, { timeout: 15000 })
cy.get(editorElement.editor, { timeout: 15000 })
.first()
.click()
.focused()
@@ -19,7 +19,7 @@ describe('Editor Shortcuts', () => {
cy.visit(
'learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements'
);
cy.get(selectors.editor, { timeout: 15000 })
cy.get(editorElement.editor, { timeout: 15000 })
.first()
.click()
.focused()