Ejemplo n.º 1
0
    def test_note_changing(self, title):
        app = MainPage()
        notes_tab = MainPage().active_tab

        notes_tab.open_note(title=title).set_title('title был 变')
        notes_tab.active_note.set_body('текст 改变了 too')

        app.refresh_page()

        notes_tab.first_note().title_should_be('title был 变')
        notes_tab.first_note().body_should_be('текст 改变了 too')

        notes_tab.active_note.title_should_be('title был 变')
        notes_tab.active_note.body_should_be('текст 改变了 too')
Ejemplo n.º 2
0
 def test_note_deleting(self, title):
     notes_tab = MainPage().active_tab
     notes_tab.open_note(title=title).note_header.open_actions_dropdown().delete_note()\
         .confirm_action()
     notes_tab.note_should_not_exist(title)
Ejemplo n.º 3
0
 def test_note_opening(self, title):
     notes_tab = MainPage().active_tab
     notes_tab.open_note(title=title).title_should_be(title)